예제 #1
0
 public NetworkHandler(GetSocketAsync getSocketAsync) : this()
 {
     _getSocketAsync = getSocketAsync;
 }
예제 #2
0
 public NetworkHandler(GetSocket getSocket) : this()
 {
     _getSocketAsync = r => Task.FromResult(getSocket(r));
 }
예제 #3
0
 public NetworkHandler(Socket socket) : this()
 {
     _getSocketAsync = r => Task.FromResult(socket);
 }
예제 #4
0
 public NetworkHandler(GetSocketAsync getSocketAsync) : this()
 {
     _getSocketAsync = getSocketAsync;
 }
예제 #5
0
 public NetworkHandler(GetSocket getSocket) : this()
 {
     _getSocketAsync = r => Task.FromResult(getSocket(r));
 }
예제 #6
0
 public NetworkHandler(Socket socket) : this()
 {
     _getSocketAsync = r => Task.FromResult(socket);
 }