AttributeBasedPolicyProviderFactory Class
An implementation of ICorsPolicyProviderFactory that returns the ICorsPolicyProvider from the controller or action attribute.
Namespace: System.Web.Http.Cors
Assembly: System.Web.Http.Cors (in System.Web.Http.Cors.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.Cors.AttributeBasedPolicyProviderFactory
Syntax
public class AttributeBasedPolicyProviderFactory : ICorsPolicyProviderFactory
public ref class AttributeBasedPolicyProviderFactory : ICorsPolicyProviderFactory
type AttributeBasedPolicyProviderFactory =
class
interface ICorsPolicyProviderFactory
end
Public Class AttributeBasedPolicyProviderFactory
Implements ICorsPolicyProviderFactory
Constructors
Name | Description | |
---|---|---|
![]() |
AttributeBasedPolicyProviderFactory() | Initializes a new instance of the AttributeBasedPolicyProviderFactory class. |
Properties
Name | Description | |
---|---|---|
![]() |
DefaultPolicyProvider | Gets or sets the default ICorsPolicyProvider. |
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetCorsPolicyProvider(HttpRequestMessage) | Gets the ICorsPolicyProvider for the request. |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.Http.Cors Namespace
Return to top