четверг, 30 ноября 2017 г.
вторник, 28 ноября 2017 г.
FTP parse WebRequestMethods.Ftp.ListDirectoryDetails
https://stackoverflow.com/questions/7060983/c-sharp-class-to-parse-webrequestmethods-ftp-listdirectorydetails-ftp-response
https://stackoverflow.com/questions/1013486/parsing-ftpwebrequest-listdirectorydetails-line#40045894
https://blogs.msdn.microsoft.com/adarshk/2004/09/15/sample-code-for-parsing-ftpwebrequest-response-for-listdirectorydetails/
http://www.seesharpdot.net/?p=242
https://gist.github.com/tobiasoberrauch/2942716
http://www.rantdriven.com/post/2010/12/03/Parsing-FTP-LIST-Command-Results.aspx
https://winscp.net/eng/docs/library
понедельник, 27 ноября 2017 г.
FTP C# Examples
UpLoad and Delete
https://stackoverflow.com/questions/17617203/deleting-file-from-ftp-in-c-sharp
Make Directory
https://stackoverflow.com/questions/860638/how-do-i-create-a-directory-on-ftp-server-using-c
DELETE Directory
https://stackoverflow.com/questions/4797508/how-can-ftpclient-delete-a-directory
http://www.cyberforum.ru/csharp-net/thread2010946.html
http://www.cyberforum.ru/csharp-net/thread963078.html
FTP 2017
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/ftp
Download
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-download-files-with-ftp
UpLoad
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-upload-files-with-ftp
GetDirList
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-list-directory-contents-with-ftp
WebRequest Problems and Exceptions
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/understanding-webrequest-problems-and-exceptions
FTP 2016
https://msdn.microsoft.com/ru-ru/library/system.net.ftpwebrequest(v=vs.110).aspx
https://msdn.microsoft.com/ru-ru/library/system.net.ftpwebrequest.keepalive(v=vs.110).aspx
https://msdn.microsoft.com/ru-ru/library/system.net.ftpwebresponse.close(v=vs.110).aspx
FTP 2010
https://msdn.microsoft.com/en-us/library/ms229718(v=vs.100).aspx
https://msdn.microsoft.com/en-us/library/ms229716(v=vs.100).aspx
https://msdn.microsoft.com/en-us/library/ms229711(v=vs.100).aspx
https://msdn.microsoft.com/en-us/library/ms229715(v=vs.100).aspx
среда, 22 ноября 2017 г.
понедельник, 20 ноября 2017 г.
NuGet WebApi.Owin SelfHost
Selfhost
Install-Package Microsoft.AspNet.WebApi.SelfHost -Version 5.2.3
Install-Package Microsoft.Owin
Install-Package Microsoft.Owin.Cors
Install-Package Microsoft.Owin.SelfHost
Install-Package Microsoft.AspNet.SignalR
Install-Package Microsoft.AspNet.WebApi.SelfHost -Version 5.2.3
Install-Package Microsoft.AspNet.WebApi.Owin -Version 5.2.3
Install-Package Microsoft.Owin.Host.SystemWeb
Identity:
Install-Package Microsoft.AspNet.Identity.Owin
Install-Package Microsoft.AspNet.Identity.EntityFramework
Microsoft.Owin.Hosting.Start and Stop
https://stackoverflow.com/questions/31562192/owin-stop-server-service
private IDisposable myServer;
public void Start() {
myServer = WebApp.Start(URL);
}
public void Stop() {
myServer.Dispose();
}
WEB API/ Security, Authentication, and Authorization in ASP.NET Web API
https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/
Important
Update-package Microsoft.Asp.Net.WebApi
http://www.c-sharpcorner.com/uploadfile/ff2f08/token-based-authentication-using-asp-net-web-api-owin-and-i/
Add User
use OWinTest
INSERT [dbo].[AspNetUsers] ([Id], [Email], [EmailConfirmed], [PasswordHash], [SecurityStamp],[PhoneNumber], [PhoneNumberConfirmed], [TwoFactorEnabled], [LockoutEndDateUtc], [LockoutEnabled], [AccessFailedCount], [UserName])
VALUES (N'9f15bdd0fcd5423190c2e877ba0228ee', N'abc@gail.com', 1,
N'ALkHGax/i5KBYWJ7q4jhJmMKmm2quBtnnqS8KcmLWd2kQpN6FaGVulDmmX12s7YAyQ==',
N'a7bc5c5c-6169-4911-b935-6fc4df01d313', NULL, 0, 0, NULL, 0, 0, N'Jignesh')
Migration: Configurate, Init
enable-migrations -ContextTypeName OwinAuthentication.Models.OwinAuthDbContext
Add-Migration -configuration OwinAuthentication.Migrations.Configuration InitialEntities
Update-Database -configuration:OwinAuthentication.Migrations.Configuration -Verbose
https://metanit.com/sharp/aspnet_webapi/5.1.php
https://stackoverflow.com/questions/15176538/net-httpclient-how-to-post-string-value
Подписаться на:
Сообщения (Atom)