/// <summary> /// Constructor /// </summary> /// <param name="userConversationService"></param> public ConversationsController(UserConversationService userConversationService, UserService userService, ConversationService conversationService, IHubContext <ChatHub> hub) { _userConversationService = userConversationService; _userService = userService; _conversationService = conversationService; _chatHub = hub; }
/// <summary> /// Constructor /// </summary> /// <param name="userService"></param> /// <param name="conversationService"></param> /// <param name="messageService"></param> public MessagesController(UserService userService, ConversationService conversationService, MessageService messageService, UserConversationService userConversationService, IHubContext <ChatHub> hub) { _userService = userService; _conversationService = conversationService; _messageService = messageService; _userConversationService = userConversationService; _chatHub = hub; }
public UserConversationManager(AppSettings appSettings, IMapper mapper) { this._appSettings = appSettings ?? throw new ArgumentNullException(nameof(appSettings)); this._mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); this._userConversationService = new UserConversationService(_appSettings); }