public LocalServiceBinding() { MessageHandler = DefaultMessageHandler.GetExistingOrNew(); ServiceDispatch += MessageHandler.ReceiveMessageFromServiceBinding; TunnelCreateDispatch += MessageHandler.ReceiveTunnelCreationRequestFromServiceBinding; MessageHandler.MessageRecieved += MessageRecieved; _linkedTunnels = new ConcurrentBag <Tunnel>(); }
static TunnelManager() { MessageHandler = DefaultMessageHandler.GetExistingOrNew(); Tunnels = new ConcurrentBag <Tunnel>(); }