Class HttpAccessControl
Specifies how to handle access control HTTP requests.
Inherited Members
Namespace: Solti.Utils.Rpc.Pipeline
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public class HttpAccessControl : RequestHandlerBuilder, IBuilder<IRequestHandler>.IParameterizedBuilder<IRequestHandler>, IHttpAccessControlHandlerConfig
Constructors
HttpAccessControl(WebServiceBuilder, RequestHandlerBuilder)
Creates a new HttpAccessControl instance.
Declaration
public HttpAccessControl(WebServiceBuilder webServiceBuilder, RequestHandlerBuilder parent)
Parameters
Type | Name | Description |
---|---|---|
WebServiceBuilder | webServiceBuilder | |
RequestHandlerBuilder | parent |
Properties
AllowedHeaders
Allowed headers.
Declaration
public ICollection<string> AllowedHeaders { get; }
Property Value
Type | Description |
---|---|
ICollection<String> |
Remarks
If the collection is empty, all kind of headers are allowed.
AllowedMethods
Allowed methods.
Declaration
public ICollection<string> AllowedMethods { get; }
Property Value
Type | Description |
---|---|
ICollection<String> |
Remarks
If the collection is empty, all kind of methods are allowed.
AllowedOrigins
The allowed origins. See https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
Declaration
public ICollection<string> AllowedOrigins { get; }
Property Value
Type | Description |
---|---|
ICollection<String> |
Remarks
If the collection is empty, all origins are allowed.
AllowLogs
Returns true if the logging is enabled.
Declaration
public bool AllowLogs { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Build(IRequestHandler)
Creates a new IRequestHandler instance.
Declaration
public override IRequestHandler Build(IRequestHandler next)
Parameters
Type | Name | Description |
---|---|---|
IRequestHandler | next |
Returns
Type | Description |
---|---|
IRequestHandler |
Overrides
Remarks
You should not call this method directly.
Explicit Interface Implementations
IHttpAccessControlHandlerConfig.AllowedHeaders
Declaration
IReadOnlyCollection<string> IHttpAccessControlHandlerConfig.AllowedHeaders { get; }
Returns
Type | Description |
---|---|
IReadOnlyCollection<String> |
IHttpAccessControlHandlerConfig.AllowedMethods
Declaration
IReadOnlyCollection<string> IHttpAccessControlHandlerConfig.AllowedMethods { get; }
Returns
Type | Description |
---|---|
IReadOnlyCollection<String> |
IHttpAccessControlHandlerConfig.AllowedOrigins
Declaration
IReadOnlyCollection<string> IHttpAccessControlHandlerConfig.AllowedOrigins { get; }
Returns
Type | Description |
---|---|
IReadOnlyCollection<String> |