예제 #1
0
        public SettingsProvider(IMemoryCache cache, IHttpContextAccessor httpContextAccessor, SquidexClientManagerFactory factory, IOptions <SettingsData> defaults)
            : base(cache, httpContextAccessor)
        {
            this.factory = factory;

            this.defaults = defaults;
        }
예제 #2
0
        public ResourceStore(IMemoryCache cache, IHttpContextAccessor httpContextAccessor, SquidexClientManagerFactory factory, IStringLocalizer <AppResources> localizer)
            : base(cache, httpContextAccessor)
        {
            this.factory = factory;

            this.localizer = localizer;
        }
예제 #3
0
 public ClientStore(SquidexClientManagerFactory factory)
 {
     this.factory = factory;
 }
예제 #4
0
 public ClientStore(IMemoryCache cache, IHttpContextAccessor httpContextAccessor, SquidexClientManagerFactory factory)
     : base(cache, httpContextAccessor)
 {
     this.factory = factory;
 }
예제 #5
0
        private static Task <ContentsResult <ApiScopeEntity, ApiScopeData> > GetApiScopesAsync(SquidexClientManagerFactory factory)
        {
            var client = factory.GetContentsClient <ApiScopeEntity, ApiScopeData>("api-scopes");

            return(client.GetAsync(context: Context.Build()));
        }
예제 #6
0
        private static Task <ContentsResult <IdentityResourceEntity, IdentityResourceData> > GetIdentityResourcesAsync(SquidexClientManagerFactory factory)
        {
            var client = factory.GetContentsClient <IdentityResourceEntity, IdentityResourceData>("identity-resources");

            return(client.GetAsync(context: Context.Build()));
        }
예제 #7
0
 public UserStore(SquidexClientManagerFactory factory)
 {
     apiClient = factory.GetContentsClient <UserEntity, UserData>("users");
 }