public static IHostBuilder AddWebSocket(this IHostBuilder @this, WebSocketModuleOptions options) { @this .ContainerBuilder .RegisterType <WebSocketModule>() .SingleInstance(); @this .ContainerBuilder .Register(i => options) .SingleInstance(); return(@this); }
private void SetOptions(WebSocketModuleOptions options) { this.options = options; }