Ejemplo n.º 1
0
        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()));
        }
Ejemplo n.º 2
0
        public WebSocketService(WebSocketSettings settings, ILoggerFactory loggerFactory, IServiceProvider serviceProvider)
        {
            this.logger = loggerFactory.CreateLogger(GetType().FullName);

            this.serviceProvider = serviceProvider;
        }