Class HttpMethodExpression
Implements an expression that evaluates to True if provided HTTP request contains one of the specified HTTP methods (verbs).
Inherited Members
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class HttpMethodExpression : AuthorizationExpressionBase, IValidator, IEquatable<AuthorizationExpressionBase>, IExtensibleDataObjectConstructors
HttpMethodExpression()
Initializes an empty instance.
Declaration
public HttpMethodExpression()Fields
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "HTTP-METHOD"Field Value
| Type | Description | 
|---|---|
| String | 
Properties
Methods
Gets or sets the comma-, semicolon-, space-, or line-separated list of HTTP methods (verbs) to be matched.
Declaration
public string Methods { get; set; }Property Value
| Type | Description | 
|---|---|
| String | 
Methods
Equals(AuthorizationExpressionBase)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(AuthorizationExpressionBase other)Parameters
| Type | Name | Description | 
|---|---|---|
| AuthorizationExpressionBase | other | The object to compare with the current object. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the specified object is equal to the current object; otherwise, false. | 
Overrides
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | The object to compare with the current object. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the specified object is equal to the current object; otherwise, false. | 
Overrides
Evaluate(AuthorizationExpressionContext)
Returns True, if provided identity is authorized to proceed with the service call.
Declaration
public override bool Evaluate(AuthorizationExpressionContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| AuthorizationExpressionContext | context | Provides the message evaluation context. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True, if provided identity is authorized to proceed with the service call. False, otherwise. | 
Overrides
GetHashCode()
Returns hash code for the value of this instance.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | Hash code for the value of this instance. | 
Overrides
ToString()
Returns string representation of the object.
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| String | String representing the object's content. | 
Overrides
Validate()
Evaluates the state of the object.
Declaration
public override bool Validate()Returns
| Type | Description | 
|---|---|
| Boolean | True if state is valid; otherwise, false. |