Пример #1
0
 public ChatProducer(ChatService chatService, UserService userService)
 {
     _chatService = chatService;
     _userService = userService;
 }
Пример #2
0
 public ChannelService(IElasticClient client = null, UserService userService = null, ChatService chatService = null)
 {
     _client      = client ?? ElasticClientFactory.Create();
     _userService = userService ?? new UserService();
     _chatService = chatService ?? new ChatService();
 }