Exemplo n.º 1
0
 public SqlRoleProvider(Func<IDatabaseUpgradeDetector> upgradeDetector, Func<ISettingsProvider> settingsProvider, Func<ISession> sessionCallback)
 {
     this.upgradeDetector = upgradeDetector;
     this.settingsProvider = settingsProvider;
     this.sessionCallback = sessionCallback;
     formsRoleProvider = new FormsRoleProvider();
 }
Exemplo n.º 2
0
 public ClaimsRoleProvider(Func <IDatabaseUpgradeDetector> upgradeDetector, Func <ISettingsProvider> settingsProvider, Func <ISession> sessionCallback)
 {
     this.upgradeDetector  = upgradeDetector;
     this.settingsProvider = settingsProvider;
     this.sessionCallback  = sessionCallback;
     formsRoleProvider     = new FormsRoleProvider();
 }