Пример #1
0
 public SiteSettingsController(IUserSvc userSvc, ICookieSvc cookieSvc, IServiceProvider provider,
                               IOptions <DataProtectionKeys> dataProtectionKeys, IOptions <AppSettings> appSettings,
                               IWritableSvc <SiteWideSettings> writableSiteWideSettings)
 {
     _userSvc                  = userSvc;
     _cookieSvc                = cookieSvc;
     _provider                 = provider;
     _dataProtectionKeys       = dataProtectionKeys.Value;
     _appSettings              = appSettings.Value;
     _writableSiteWideSettings = writableSiteWideSettings;
 }