public MessagesService(
     IMessagesRepository messagesRepository,
     IMessageContentRepository messageContentRepository,
     IPartnerAndLocationHelper partnerAndLocationHelper,
     ICustomerManagementServiceClient customerManagementServiceClient,
     IRabbitPublisher <PushNotificationEvent> partnerMessagesPublisher,
     IPartnerManagementClient partnerManagementClient,
     string partnerMessageTemplateId,
     ILogFactory logFactory)
 {
     _messagesRepository              = messagesRepository;
     _messageContentRepository        = messageContentRepository;
     _partnerAndLocationHelper        = partnerAndLocationHelper;
     _customerManagementServiceClient = customerManagementServiceClient;
     _partnerMessagesPublisher        = partnerMessagesPublisher;
     _partnerManagementClient         = partnerManagementClient;
     _partnerMessageTemplateId        = partnerMessageTemplateId;
     _log = logFactory.CreateLog(this);
     _componentSourceName = $"{AppEnvironment.Name} - {AppEnvironment.Version}";
 }
Пример #2
0
 public MessageContentService(IMessageContentRepository messageContentRepository)
 {
     _messageContentRepository = messageContentRepository;
 }
Пример #3
0
 /// <summary>
 /// 初始化消息内容表服务
 /// </summary>
 /// <param name="unitOfWork">工作单元</param>
 /// <param name="messageContentRepository">消息内容表仓储</param>
 public MessageContentService(IUniversalSysCenterUnitOfWork unitOfWork, IMessageContentRepository messageContentRepository)
     : base(unitOfWork, messageContentRepository)
 {
     MessageContentRepository = messageContentRepository;
 }