示例#1
0
 public MessageService(
     IMessageRepository messageRepository,
     IMessageStateRepository messageStateRepository,
     IUserRepository userRepository,
     IMessageUrlService messageUrlService,
     IFileRepository fileRepository,
     IDatabaseTransactionService databaseTransactionService)
 {
     _messageRepository          = messageRepository;
     _messageStateRepository     = messageStateRepository;
     _userRepository             = userRepository;
     _messageUrlService          = messageUrlService;
     _fileRepository             = fileRepository;
     _databaseTransactionService = databaseTransactionService;
 }
 public UserMessageService(
     IUserMessageRepository userMessageRepository,
     IMessageRepository messageRepository,
     IMessageHashtagService messageHashtagService,
     IMessageMentionService messageMentionService,
     IUnitOfWork unitOfWork,
     IDatabaseTransactionService databaseTransactionService,
     ISearchService searchService)
 {
     _userMessageRepository      = userMessageRepository;
     _messageRepository          = messageRepository;
     _messageHashtagService      = messageHashtagService;
     _messageMentionService      = messageMentionService;
     _unitOfWork                 = unitOfWork;
     _databaseTransactionService = databaseTransactionService;
     _searchService              = searchService;
 }