public ChannelController(IChannelService channelService, IChannelSocketService channelSocketService, IMemberService memberService) { Ensure.That(channelService).IsNotNull(); Ensure.That(channelSocketService).IsNotNull(); Ensure.That(memberService).IsNotNull(); _channelService = channelService; _channelSocketService = channelSocketService; _memberService = memberService; }
public ChatHub(ILogger logger, IChannelSocketService channelSocketService, IMessageSocketService messageSocketService, IChannelService channelService, IClientService clientService) { Ensure.That(logger).IsNotNull(); Ensure.That(channelSocketService).IsNotNull(); Ensure.That(messageSocketService).IsNotNull(); Ensure.That(channelService).IsNotNull(); Ensure.That(clientService).IsNotNull(); _logger = logger; _channelSocketService = channelSocketService; _messageSocketService = messageSocketService; _channelService = channelService; _clientService = clientService; }