コード例 #1
0
 public MeetSheetOnlyModel(
     IMeetsService meetsService,
     IHostingEnvironment hostingEnvironment)
 {
     _meetsService       = meetsService ?? throw new ArgumentNullException(nameof(meetsService));
     _hostingEnvironment = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
 }
コード例 #2
0
 public FullSchedulePreviewModel(
     IMeetsService meetsService,
     IHostingEnvironment hostingEnvironment)
 {
     _meetsService       = meetsService ?? throw new ArgumentNullException(nameof(meetsService));
     _hostingEnvironment = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
 }
コード例 #3
0
 public TestController(
     ILogger logger,
     IEmailAddressService emailAddressService,
     IEmailSenderService emailSenderService,
     IMeetsService meetsService)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _emailAddressService = emailAddressService ?? throw new ArgumentNullException(nameof(emailAddressService));
     _emailSenderService  = emailSenderService ?? throw new ArgumentNullException(nameof(emailSenderService));
     _meetsService        = meetsService ?? throw new ArgumentNullException(nameof(meetsService));
 }
コード例 #4
0
        public EmailController(
            ISettings settings,
            ILogger logger,
            IEmailAddressService emailAddressService,
            IEmailSenderService emailSenderService,
            IMeetsService meetsService,
            IHostingEnvironment hostingEnvironment)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
            _emailAddressService = emailAddressService ?? throw new ArgumentNullException(nameof(emailAddressService));
            _emailSenderService  = emailSenderService ?? throw new ArgumentNullException(nameof(emailSenderService));
            _meetsService        = meetsService ?? throw new ArgumentNullException(nameof(meetsService));
            _hostingEnvironment  = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));

            _meetsPageUrl = settings.GetValidString(SettingName_MeetsPageUrl);
        }
コード例 #5
0
 public MeetSheetLeaderPreview(IMeetsService meetsService)
 {
     _meetsService = meetsService ?? throw new ArgumentNullException(nameof(meetsService));
 }