windows service (wodFTPServer)
Hi Gary.
I just tried with regular console application that is easier to test. Following simple code works. Can you try it on your side, and then copy/paste to your service, and check if it works?
Jasmine
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
wodFTPDComLib.wodFTPDCom Ftp1;
Ftp1 = new wodFTPDComLib.wodFTPDCom();
Ftp1.Protocol = wodFTPDComLib.ProtocolsEnum.FTP;
Ftp1.LoginPassword += new wodFTPDComLib._IwodFTPDComEvents_LoginPasswordEventHandler(Ftp1_LoginPassword);
Ftp1.Start(21);
while (true)
Thread.Sleep(10);
}
static void Ftp1_LoginPassword(wodFTPDComLib.FtpUser User, string Login, string Password, ref wodFTPDComLib.FtpActions Action)
{
Action = wodFTPDComLib.FtpActions.Allow;
}
}
}
Complete thread:
- windows service - Gary, 2016-02-15, 18:24
- windows service - Jasmine, 2016-02-15, 19:48
- windows service - Gary, 2016-02-15, 23:36
- windows service - Jasmine, 2016-02-15, 23:47
- windows service - Gary, 2016-02-16, 01:26
- windows service - Jasmine, 2016-02-16, 10:57
- windows service - Gary, 2016-02-16, 01:26
- windows service - Jasmine, 2016-02-15, 23:47
- windows service - Gary, 2016-02-15, 23:36
- windows service - Jasmine, 2016-02-15, 19:48