public ChatProducer(ChatService chatService, UserService userService) { _chatService = chatService; _userService = userService; }
public ChannelService(IElasticClient client = null, UserService userService = null, ChatService chatService = null) { _client = client ?? ElasticClientFactory.Create(); _userService = userService ?? new UserService(); _chatService = chatService ?? new ChatService(); }