/// <summary> /// Creates the ETP server handler. /// </summary> /// <param name="socket">The WebSocket.</param> /// <param name="headers">The headers.</param> /// <returns></returns> protected virtual EtpServerHandler CreateEtpServerHandler(WebSocket socket, IDictionary <string, string> headers) { var handler = new EtpServerHandler(socket, _defaultServerName, _overrideServerVersion, headers); RegisterProtocolHandlers(handler); return(handler); }
protected override void RegisterProtocolHandlers(EtpServerHandler handler) { handler.Register(() => Container.Resolve <IChannelStreamingProducer>()); handler.Register(() => Container.Resolve <IChannelStreamingConsumer>()); handler.Register(() => Container.Resolve <IDiscoveryStore>()); handler.Register(() => Container.Resolve <IStoreStore>()); }
/// <summary> /// Registers the protocol handlers supported by the specified <see cref="EtpServerHandler"/>. /// </summary> /// <param name="handler">The handler.</param> protected virtual void RegisterProtocolHandlers(EtpServerHandler handler) { }