Class AbpCorsPolicyService
Inheritance
System.Object
AbpCorsPolicyService
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class AbpCorsPolicyService : ICorsPolicyService
Constructors
AbpCorsPolicyService(IDistributedCache<AllowedCorsOriginsCacheItem>, IHybridServiceScopeFactory)
Declaration
public AbpCorsPolicyService(IDistributedCache<AllowedCorsOriginsCacheItem> cache, IHybridServiceScopeFactory hybridServiceScopeFactory)
Parameters
Properties
Cache
Declaration
protected IDistributedCache<AllowedCorsOriginsCacheItem> Cache { get; }
Property Value
HybridServiceScopeFactory
Declaration
protected IHybridServiceScopeFactory HybridServiceScopeFactory { get; }
Property Value
Type |
Description |
IHybridServiceScopeFactory |
|
Logger
Declaration
public ILogger<AbpCorsPolicyService> Logger { get; set; }
Property Value
Methods
CreateCacheItemAsync()
Declaration
protected virtual Task<AllowedCorsOriginsCacheItem> CreateCacheItemAsync()
Returns
IsOriginAllowedAsync(String)
Declaration
public virtual Task<bool> IsOriginAllowedAsync(string origin)
Parameters
Type |
Name |
Description |
System.String |
origin |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Extension Methods