Пример #1
0
        public static IHostBuilder AddWebSocket(this IHostBuilder @this, WebSocketModuleOptions options)
        {
            @this
            .ContainerBuilder
            .RegisterType <WebSocketModule>()
            .SingleInstance();

            @this
            .ContainerBuilder
            .Register(i => options)
            .SingleInstance();
            return(@this);
        }
Пример #2
0
 private void SetOptions(WebSocketModuleOptions options)
 {
     this.options = options;
 }