Show / Hide Table of Contents

Class AbpCorsPolicyService

Inheritance
object
AbpCorsPolicyService
AbpWildcardSubdomainCorsPolicyService
Implements
ICorsPolicyService
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.IdentityServer
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class AbpCorsPolicyService : ICorsPolicyService

Constructors

AbpCorsPolicyService(IDistributedCache<AllowedCorsOriginsCacheItem>, IServiceScopeFactory, IOptions<IdentityServerOptions>)

Declaration
public AbpCorsPolicyService(IDistributedCache<AllowedCorsOriginsCacheItem> cache, IServiceScopeFactory hybridServiceScopeFactory, IOptions<IdentityServerOptions> options)
Parameters
Type Name Description
IDistributedCache<AllowedCorsOriginsCacheItem> cache
IServiceScopeFactory hybridServiceScopeFactory
IOptions<IdentityServerOptions> options

Properties

Cache

Declaration
protected IDistributedCache<AllowedCorsOriginsCacheItem> Cache { get; }
Property Value
Type Description
IDistributedCache<AllowedCorsOriginsCacheItem>

HybridServiceScopeFactory

Declaration
protected IServiceScopeFactory HybridServiceScopeFactory { get; }
Property Value
Type Description
IServiceScopeFactory

Logger

Declaration
public ILogger<AbpCorsPolicyService> Logger { get; set; }
Property Value
Type Description
ILogger<AbpCorsPolicyService>

Options

Declaration
protected IdentityServerOptions Options { get; }
Property Value
Type Description
IdentityServerOptions

Methods

CreateCacheItemAsync()

Declaration
protected virtual Task<AllowedCorsOriginsCacheItem> CreateCacheItemAsync()
Returns
Type Description
Task<AllowedCorsOriginsCacheItem>

IsOriginAllowedAsync(string)

Declaration
public virtual Task<bool> IsOriginAllowedAsync(string origin)
Parameters
Type Name Description
string origin
Returns
Type Description
Task<bool>

IsOriginAllowedAsync(string[], string)

Declaration
protected virtual Task<bool> IsOriginAllowedAsync(string[] allowedOrigins, string origin)
Parameters
Type Name Description
string[] allowedOrigins
string origin
Returns
Type Description
Task<bool>

Implements

IdentityServer4.Services.ICorsPolicyService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform