static void ServerThreadLoop(object mrevent) { ManualResetEvent resetEvent = (ManualResetEvent)mrevent; var host = new Server(); IPCService.Instance.OnMessageRecieved += IPCService_OnMessageRecieved; host.Start(resetEvent, "IPCTestServer", new ConnectionOptions(), BindingScheme.NAMED_PIPE | BindingScheme.TCP); }
static void ServerThreadLoop(object mrevent) { ManualResetEvent resetEvent = (ManualResetEvent)mrevent; var host = new Server(); IPCService.Instance.OnMessageRecieved += IPCService_OnMessageRecieved; host.Start(resetEvent, Process.GetCurrentProcess().Id.ToString(),"localhost",64000); }
static void ServerThreadLoop(object mrevent) { ManualResetEvent resetEvent = (ManualResetEvent)mrevent; var host = new Server(); host.Start(resetEvent, "DatabaseServer", new ConnectionOptions(), BindingScheme.NAMED_PIPE | BindingScheme.TCP); }