Пример #1
0
 public ChatService(
     IChatDataProvider chatDataProvider,
     IUsersRepository usersRepository,
     IUsersConversationsRepository usersConversationsRepository,
     IConversationRepository conversationRepository,
     ILastMessagesRepository lastMessagesRepository,
     IDhPublicKeysRepository dh,
     IChatRolesRepository rolesRepository,
     FilesService filesService,
     UnitOfWork unitOfWork,
     BansService bansService,
     MessagesService messagesService,
     IComparer <Shared.DTO.Conversations.Chat> chatComparer,
     IRolesRepository staticRolesRepo)
 {
     this.chatDataProvider             = chatDataProvider;
     this.usersRepository              = usersRepository;
     this.usersConversationsRepository = usersConversationsRepository;
     this.conversationRepository       = conversationRepository;
     this.lastMessagesRepository       = lastMessagesRepository;
     publicKeys           = dh;
     this.rolesRepository = rolesRepository;
     this.filesService    = filesService;
     this.unitOfWork      = unitOfWork;
     this.bansService     = bansService;
     this.messagesService = messagesService;
     this.chatComparer    = chatComparer;
     this.staticRolesRepo = staticRolesRepo;
 }
Пример #2
0
 public LoginService(
     IUsersRepository usersRepository,
     IChatDataProvider chatDataProvider,
     UnitOfWork unitOfWork,
     IJwtTokenGenerator tokenGenerator)
 {
     this.usersRepository  = usersRepository;
     this.chatDataProvider = chatDataProvider;
     this.unitOfWork       = unitOfWork;
     this.tokenGenerator   = tokenGenerator;
 }
 public ChatService(IChatDataProvider chatDataProvider)
 {
     _chatDataProvider = chatDataProvider;
 }