Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <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;
 }
Пример #3
0
 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);
 }