Share via


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
System_CAPS_pubmethod AttributeBasedPolicyProviderFactory()

Initializes a new instance of the AttributeBasedPolicyProviderFactory class.

Properties

Name Description
System_CAPS_pubproperty DefaultPolicyProvider

Gets or sets the default ICorsPolicyProvider.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetCorsPolicyProvider(HttpRequestMessage)

Gets the ICorsPolicyProvider for the request.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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