public WebSocketFeature(IFullNodeBuilder fullNodeBuilder, FullNode fullNode, IWebSocketService service, WebSocketSettings settings, ILoggerFactory loggerFactory) { this.fullNodeBuilder = fullNodeBuilder; this.fullNode = fullNode; this.service = service; this.settings = settings; this.loggerFactory = loggerFactory; this.loggerFactory.AddProvider(new WebSocketLoggingProvider(service, new WebSocketLoggerConfiguration())); }
public WebSocketService(WebSocketSettings settings, ILoggerFactory loggerFactory, IServiceProvider serviceProvider) { this.logger = loggerFactory.CreateLogger(GetType().FullName); this.serviceProvider = serviceProvider; }