public ObjectBus(StreamHandler streamHandler) { if (streamHandler == null) throw new ArgumentNullException ("streamHandler"); this.streamHandler = streamHandler; streamHandler.RegisterCallback (streamHandlerCallback); }
public ObjectBus(StreamHandler streamHandler) { if (streamHandler == null) { throw new ArgumentNullException("streamHandler"); } this.streamHandler = streamHandler; streamHandler.RegisterCallback(streamHandlerCallback); }
public ObjectBus(StreamHandler streamHandler) { #if TRACE Console.WriteLine (new System.Diagnostics.StackTrace (true).GetFrame (0)); #endif if (streamHandler == null) throw new ArgumentNullException ("streamHandler"); this.streamHandler = streamHandler; streamHandler.RegisterCallback (StreamHandlerCallback); streamHandler.RegisterDisconnectHandler (streamHandlerDisconnected); systemSession = CreateSession (Guid.Empty, SystemSessionDisconnected); RegisterType (typeof(BusReadyMessage), busReadyMessageReceived); }
public ObjectBus(StreamHandler streamHandler) { #if TRACE Console.WriteLine(new System.Diagnostics.StackTrace(true).GetFrame(0)); #endif if (streamHandler == null) { throw new ArgumentNullException("streamHandler"); } this.streamHandler = streamHandler; streamHandler.RegisterCallback(StreamHandlerCallback); streamHandler.RegisterDisconnectHandler(streamHandlerDisconnected); systemSession = CreateSession(Guid.Empty, SystemSessionDisconnected); RegisterType(typeof(BusReadyMessage), bunReadyMessageReceived); }