public ServiceFactory(Registration <IUserService> userService,
                       StoreSettings storeSettings)
 {
     Register(new Registration <StoreSettings>(storeSettings));
     UserService            = userService;
     ClientStore            = new Registration <IClientStore>(typeof(ClientStore));
     ScopeStore             = new Registration <IScopeStore>(typeof(ScopeStore));
     ConsentStore           = new Registration <IConsentStore>(typeof(ConsentStore));
     AuthorizationCodeStore = new Registration <IAuthorizationCodeStore>(typeof(AuthorizationCodeStore));
     RefreshTokenStore      = new Registration <IRefreshTokenStore>(typeof(RefreshTokenStore));
     TokenHandleStore       = new Registration <ITokenHandleStore>(typeof(TokenHandleStore));
 }
Exemplo n.º 2
0
 public ScopeStore(StoreSettings settings)
     : base(settings.Folder, settings.Database, settings.ScopeCollection)
 {
 }
 public TokenHandleStore(
     StoreSettings settings,
     IClientStore clientStore)
     : this(clientStore, settings.Folder, settings.Database, settings.TokenHandleCollection)
 {
 }
 public TokenHandleStore(
     StoreSettings settings)
     : this(settings, new ClientStore(settings))
 {
 }
Exemplo n.º 5
0
 public ClientStore(StoreSettings settings)
     : base(settings.Folder, settings.Database, settings.ClientCollection)
 {
 }
 public RefreshTokenStore(
     StoreSettings settings,
     IClientStore clientStore)
     : this(clientStore, settings.Folder, settings.Database, settings.RefreshTokenCollection)
 {
 }
 public RefreshTokenStore(StoreSettings settings)
     : this(settings, new ClientStore(settings))
 {
     _clientStore = new ClientStore(settings);
 }