Пример #1
0
 internal Connection(Socket socket, Configuration configuration)
 {
     raiser             = new CommandRaiser();
     transport          = new Transport(socket, raiser);
     this.configuration = configuration;
     receive            = Task.Run(() => Receive());
 }
Пример #2
0
 public Transport(Socket socket, CommandRaiser raiser)
 {
     this.socket = socket;
     this.raiser = raiser;
 }