Skip to main content

Definition

Assembly: Microsoft.Restier.AspNet.dll Namespace: Microsoft.Restier.AspNet.Operation Inheritance: Microsoft.Restier.Core.Operation.OperationContext

Syntax

Microsoft.Restier.AspNet.Operation.RestierOperationContext

Summary

Represents context under which a operation is executed within ASP.NET (Core). One instance created for one execution of one operation.

Constructors

.ctor

Initializes a new instance of the RestierOperationContext class.

Syntax

public RestierOperationContext(Microsoft.Restier.Core.ApiBase api, System.Func<string, object> getParameterValueFunc, string operationName, bool isFunction, System.Collections.IEnumerable bindingParameterValue)

Parameters

NameTypeDescription
apiMicrosoft.Restier.Core.ApiBaseAn Api.
getParameterValueFuncSystem.Func<string, object>The function that used to retrieve the parameter value name.
operationNamestringThe operation name.
isFunctionboolA flag indicates this is a function call or action call.
bindingParameterValueSystem.Collections.IEnumerableA queryable for binding parameter value and if it is function/action import, the value will be null.

Properties

Request

Gets or sets the Request.

Syntax

public System.Net.Http.HttpRequestMessage Request { get; set; }

Property Value

Type: System.Net.Http.HttpRequestMessage