public EditorWebSocketMiddleware(RequestDelegate next) { _next = next; _webSocketsService = DependencyInjectionConfiguration.GetContainer().GetInstance <IWebSocketsService>(); _messageService = DependencyInjectionConfiguration.GetContainer().GetInstance <IMessageService>(); _messageProcessor = DependencyInjectionConfiguration.GetContainer().GetInstance <IMessageProcessor>(); }