windows service - WeOnlyDo Discussion board

windows service (wodFTPServer)

by Gary, Tuesday, February 16, 2016, 01:26 (3204 days ago) @ Jasmine

Hi Gary.

I'm not that much of a C# expert, but I believe this link would help:

http://stackoverflow.com/questions/2443867/message-pump-in-net-windows-service

inside DLL.Init add startup code for wodFTPServer, and then message pump will continue to run.

Or, you could for a test add

while (true)
Sleep(10);

for a test in your C# code. This will allow messages to process I think but not nice approach.

Jasmine.

Thanks,Jasmine

The issue is the wodFTP event cannot be captured in the windows service.
I add the startup code for wodFTPServer in the dll init, and add the code you mentioned in onStart(), but still, the any wodFTP event cannot be captured when client try to connect.

Please help.

Thanks and Best regards

Gary


Complete thread: