コード例 #1
0
 public LocalServiceBinding()
 {
     MessageHandler                  = DefaultMessageHandler.GetExistingOrNew();
     ServiceDispatch                += MessageHandler.ReceiveMessageFromServiceBinding;
     TunnelCreateDispatch           += MessageHandler.ReceiveTunnelCreationRequestFromServiceBinding;
     MessageHandler.MessageRecieved += MessageRecieved;
     _linkedTunnels                  = new ConcurrentBag <Tunnel>();
 }
コード例 #2
0
ファイル: TunnelManager.cs プロジェクト: nterry/PipeWrench
 static TunnelManager()
 {
     MessageHandler = DefaultMessageHandler.GetExistingOrNew();
     Tunnels        = new ConcurrentBag <Tunnel>();
 }