private ITemplateMessageSender _templateMessageSender; //微信模板消息发送服务 public NotificationJob() { var container = (ObjectContainer.Current as AutofacObjectContainer).Container; _smSender = container.Resolve <ISMSender>(); _templateMessageSender = container.Resolve <ITemplateMessageSender>(); _commandService = container.Resolve <ICommandService>(); _notificationQueryService = container.Resolve <INotificationQueryService>(); }
public NotificationController(ICommandService commandService, IContextService contextService, INotificationQueryService notificationQueryService):base(commandService,contextService) { _notificationQueryService = notificationQueryService; }
public PanelNotificationController(ICommandBus bus, INotificationQueryService notificationQueryService) : base(bus) { _notificationQueryService = notificationQueryService; }
public ContactController(ICommandBus commandBus, INotificationQueryService messageQueryService) { _commandBus = commandBus; _messageQueryService = messageQueryService; }
public NotificationController(ICommandBus commandBus, INotificationQueryService notificationQueryService) { _commandBus = commandBus; _notificationQueryService = notificationQueryService; }