public EditorWebSocketMiddleware(RequestDelegate next)
 {
     _next = next;
     _webSocketsService = DependencyInjectionConfiguration.GetContainer().GetInstance <IWebSocketsService>();
     _messageService    = DependencyInjectionConfiguration.GetContainer().GetInstance <IMessageService>();
     _messageProcessor  = DependencyInjectionConfiguration.GetContainer().GetInstance <IMessageProcessor>();
 }
예제 #2
0
 public JoinRoomHandler(IRoomService roomService, IWebSocketsService webSocketsService) : base(roomService)
 {
     _webSocketsService = webSocketsService;
 }
 public UpdateInfoMessageHandler(IRoomService roomService, IWebSocketsService webSocketsService,
                                 IMessageService messageService) : base(roomService)
 {
     _webSocketsService = webSocketsService;
     _messageService    = messageService;
 }
 public ChatMessageHandler(IRoomService roomService, IWebSocketsService webSocketsService) : base(roomService)
 {
     _webSocketsService = webSocketsService;
 }
 public CreateRoomHandler(IRoomService roomService, IWebSocketsService webSocketsService,
                          IMessageService messageService) : base(roomService)
 {
     _webSocketsService = webSocketsService;
     _messageService    = messageService;
 }