Пример #1
0
 public SubscriptionController(IPublishedPcmMessageService publishedMessageService, ISpisSubscriptionService SpisSubscriptionService, IMessageTypeService messageTypeService,
                               IIdentityService identityService, IACLObjectService aCLObjectService)
 {
     _publishedMessageService = publishedMessageService;
     _SpisSubscriptionService = SpisSubscriptionService;
     _messageTypeService      = messageTypeService;
     _identityService         = identityService;
     _aCLObjectService        = aCLObjectService;
 }
 public PublishMessageController(IPublishedPcmMessageService publishedMessageService,
                                 IMessageTypeService messageTypeService,
                                 IACLObjectService aclObjectService,
                                 ISpisSubscriptionService spisSubscriptionService)
 {
     _publishedMessageService = publishedMessageService;
     _messageTypeService      = messageTypeService;
     _aclObjectService        = aclObjectService;
     _spisSubscriptionService = spisSubscriptionService;
 }
        public PcmMessageController(StmDbContext context,
                                    IPublishedPcmMessageService publishedMessageService,
                                    IACLObjectService aclObjectService,
                                    IIdentityService identityService,
                                    ISpisSubscriptionService subscriptionService,
                                    IMessageTypeService messageTypeService,

                                    IUploadedMessageService uploadedMessageService,
                                    INotificationService notificationService)
        {
            _context = context;
            _publishedMessageService  = publishedMessageService;
            _aclObjectService         = aclObjectService;
            _identityService          = identityService;
            _subscriptionService      = subscriptionService;
            _messageTypeService       = messageTypeService;
            _uploadedMessageService   = uploadedMessageService;
            _notificationService      = notificationService;
            InstanceContext.ServiceId = ConfigurationManager.AppSettings["MyIdentity"];
        }