public UserSchemaService(IOspService ospService, IOspResourceStore resourceStore, IOspClientStore clientStore,
                          OspCoreServicesOptions ospCoreServicesOptions)
 {
     _systemContext          = ospService.SystemContext;
     _resourceStore          = resourceStore;
     _clientStore            = clientStore;
     _ospCoreServicesOptions = ospCoreServicesOptions;
 }
Exemplo n.º 2
0
 public UserSchemaService(ISystemContext systemContext, IOspResourceStore resourceStore,
                          IOspClientStore clientStore,
                          IOptions <OspJobServicesOptions> ospJobServicesOptions)
 {
     _systemContext         = systemContext;
     _resourceStore         = resourceStore;
     _clientStore           = clientStore;
     _ospJobServicesOptions = ospJobServicesOptions.Value;
 }
Exemplo n.º 3
0
 public UserSchemaService(ISystemContext systemContext, UserManager <OspUser> userManager,
                          RoleManager <OspRole> roleManager, IOspClientStore clientStore, IOspResourceStore resourceStore,
                          IOspIdentityProviderStore ospIdentityProviderStore, IOptions <OspIdentityOptions> ospIdentityOptions)
 {
     _systemContext            = systemContext;
     _userManager              = userManager;
     _roleManager              = roleManager;
     _clientStore              = clientStore;
     _resourceStore            = resourceStore;
     _ospIdentityProviderStore = ospIdentityProviderStore;
     _ospIdentityOptions       = ospIdentityOptions.Value;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="clientStore">Client store object to access all available clients.</param>
 /// <param name="distributedCache">Instance of distributed cache</param>
 public CorsPolicyProvider(IOspClientStore clientStore, IDistributedWithPubSubCache distributedCache)
 {
     _clientStore = clientStore;
     _channel     = distributedCache.Subscribe <string>(CacheCommon.KeyCorsClients);
     _channel.OnMessage(OnInvalidateData);
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="ospClientStore">The storage service of clients</param>
 /// <param name="distributedCache">Distributed cache with REDIS</param>
 public ClientsController(IOspClientStore ospClientStore, IDistributedWithPubSubCache distributedCache)
 {
     _ospClientStore   = ospClientStore;
     _distributedCache = distributedCache;
 }
 public CorsPolicyService(IOspClientStore clientStore)
 {
     _clientStore = clientStore;
 }