Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Operation Inheritance: Microsoft.Restier.Core.InvocationContextSyntax
Summary
Represents context under which a operation is executed. One instance created for one execution of one operation.Constructors
.ctor
Initializes a new instance of the OperationContext class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An Api. |
getParameterValueFunc | System.Func<string, object> | The function that used to retrieve the parameter value name. |
operationName | string | The operation name. |
isFunction | bool | A flag indicates this is a function call or action call. |
bindingParameterValue | System.Collections.IEnumerable | A queryable for binding parameter value and if it is function/action import, the value will be null. |
.ctor Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Parameters
| Name | Type | Description |
|---|---|---|
api | Microsoft.Restier.Core.ApiBase | An Api. |
.ctor Inherited
Inherited from
objectSyntax
Properties
Api Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Property Value
Type:Microsoft.Restier.Core.ApiBase
BindingParameterValue
Gets the queryable for binding parameter value, and if it is function/action import, the value will be null.Syntax
Property Value
Type:System.Collections.IEnumerable
GetParameterValueFunc
Gets the function that used to retrieve the parameter value name.Syntax
Property Value
Type:System.Func<string, object>
IsFunction
Gets a value indicating whether it is a function call or action call.Syntax
Property Value
Type:bool
OperationName
Gets the operation name.Syntax
Property Value
Type:string
ParameterValues
Gets or sets the parameters value array used by method, It is only set after parameters are prepared.Syntax
Property Value
Type:System.Collections.Generic.ICollection<object>
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetApiService Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Returns
Type:T
The API service instance.
Type Parameters
T- The API service type.
GetApiService Inherited
Inherited from
Microsoft.Restier.Core.InvocationContextSyntax
Parameters
| Name | Type | Description |
|---|---|---|
type | System.Type | The API service type. |
Returns
Type:object
The API service instance.
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?