コード例 #1
0
        public EmailDispatchWidgetController(IEmailDispatchWidgetEmailMessageService service, IProvideEmailConfiguration configuration)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            this.service = service;
            this.configuration = configuration;
        }
コード例 #2
0
        public EmailTemplateWidgetController(IEmailTemplateWidgetTemplateService service, IProvideEmailConfiguration configuration)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            this.service = service;
            this.configuration = configuration;
        }
コード例 #3
0
        public DispatchMonthlyController(IDispatchMonthlyDashboardService service, IProvideEmailConfiguration userConfiguration)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            if (userConfiguration == null)
                throw new ArgumentNullException("userConfiguration");

            this.service = service;
            this.userConfiguration = userConfiguration;
        }
コード例 #4
0
        public EmailTemplateManagementController(IEmailTemplateManagementTemplateService service, IProvideEmailConfiguration configuration, Func<CreateTemplatePreCommand> createTemplatePreCommandAccessor, Func<DeletedTemplatePreCommand> deletedTemplatePreCommandAccessor, Func<RenameTemplatePreCommand> renameTemplatePreCommandAccessor, Func<UpdateTemplateFromEmailAddressPreCommand> updateTemplateFromEmailAddressPreCommandAccessor, Func<UpdateTemplateEmailContentsPreCommand> updateTemplateEmailContentsPreCommandAccessor)
        {
            if (service == null)
                throw new ArgumentNullException("service");

            this.service = service;

            this.configuration = configuration;
            this.createTemplatePreCommandAccessor = createTemplatePreCommandAccessor;
            this.deletedTemplatePreCommandAccessor = deletedTemplatePreCommandAccessor;
            this.renameTemplatePreCommandAccessor = renameTemplatePreCommandAccessor;
            this.updateTemplateFromEmailAddressPreCommandAccessor = updateTemplateFromEmailAddressPreCommandAccessor;
            this.updateTemplateEmailContentsPreCommandAccessor = updateTemplateEmailContentsPreCommandAccessor;
        }