コード例 #1
0
 public SettingsService
 (
     JwtSettings jwtSettings,
     EmailNotificationSettings emailNotificationSettings,
     UIUrlSettings uiUrlSettings
 )
 {
     JwtSettings = jwtSettings;
     EmailNotificationSettings = emailNotificationSettings;
     UIUrlSettings             = uiUrlSettings;
 }
コード例 #2
0
ファイル: Startup.cs プロジェクト: ValeriiR/ArchysoftDemo
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;
            var jwtSettings = new JwtSettings();

            Configuration.Bind(nameof(JwtSettings), jwtSettings);

            var emailSettings = new EmailSettings();

            Configuration.Bind(nameof(EmailSettings), emailSettings);

            var uiUrlsettings = new UIUrlSettings();

            Configuration.Bind(nameof(UIUrlSettings), uiUrlsettings);

            _settingsService = new SettingsService(jwtSettings, emailSettings, uiUrlsettings);
        }
コード例 #3
0
 public SettingsService(JwtSettings jwtSettings, EmailSettings emailSettings, UIUrlSettings uiUrlSettings)
 {
     JwtSettings   = jwtSettings;
     EmailSettings = emailSettings;
     UiUrlSettings = uiUrlSettings;
 }