public Task Start() { ConnectionListener = new Communication.Connection(); ConnectionListener.Listen(LocalIPEndPoint); return(Task.Factory.StartNew(() => StartToReceiveConnections())); }
void HandleNewRemoteConnection(Communication.Connection remoteConnection) { var communicator = new Communicator(remoteConnection); communicator.Comunicate(); }