예제 #1
0
        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>();
        }
예제 #2
0
 public NotificationController(ICommandService commandService, IContextService contextService,
     INotificationQueryService notificationQueryService):base(commandService,contextService)
 {
     _notificationQueryService = notificationQueryService;
 }
예제 #3
0
 public PanelNotificationController(ICommandBus bus, INotificationQueryService notificationQueryService) : base(bus)
 {
     _notificationQueryService = notificationQueryService;
 }
예제 #4
0
 public ContactController(ICommandBus commandBus, INotificationQueryService messageQueryService)
 {
     _commandBus          = commandBus;
     _messageQueryService = messageQueryService;
 }
 public NotificationController(ICommandBus commandBus, INotificationQueryService notificationQueryService)
 {
     _commandBus = commandBus;
     _notificationQueryService = notificationQueryService;
 }