예제 #1
0
 public ConversationHub(IConversationService conversationService,
                        IMessageService messageService,
                        IConversationUserService conversationUserService)
 {
     _conversationService     = conversationService;
     _messageService          = messageService;
     _conversationUserService = conversationUserService;
 }
예제 #2
0
 public UsersController(
     IUserService userService,
     IConversationUserService conversationUserService,
     IContactService contactService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _userService             = userService;
     _conversationUserService = conversationUserService;
     _contactService          = contactService;
     _mapper      = mapper;
     _appSettings = appSettings.Value;
 }
예제 #3
0
 public MessageService(IRepository <Message> messageRepository, IRepository <Attachment> attachmentRepository, ITimeProvider timeProvider,
                       IAttachmentContentProvider attachmentContentProvider, IBlackListService blackListService, IConversationUserService conversationUserService,
                       Mapper mapper)
 {
     _messageRepository         = messageRepository;
     _attachmentRepository      = attachmentRepository;
     _timeProvider              = timeProvider;
     _attachmentContentProvider = attachmentContentProvider;
     _blackListService          = blackListService;
     _conversationUserService   = conversationUserService;
     _mapper = mapper;
     // null obj pattern again
     InitEmptyEventHandlers();
 }
예제 #4
0
 public ConversationsController(
     IConversationService conversationService,
     IConversationUserService conversationUserService,
     IMessageService messageService,
     IUserService userService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _conversationService     = conversationService;
     _conversationUserService = conversationUserService;
     _messageService          = messageService;
     _userService             = userService;
     _mapper      = mapper;
     _appSettings = appSettings.Value;
 }