Definition
Assembly: Microsoft.Restier.AspNetCore.dll Namespace: Microsoft.Restier.AspNetCore.Middleware Inheritance: System.ObjectSyntax
Summary
Fixes the issue outlined in https://github.com/OData/WebApi/issues/2294Remarks
Solution adapted from https://stackoverflow.com/questions/71338662/ihttpcontextaccessor-httpcontext-is-null-after-execution-falls-out-of-the-useodaConstructors
.ctor
The default constructor for the middleware.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
requestDelegate | Microsoft.AspNetCore.Http.RequestDelegate | - |
.ctor Inherited
Inherited from
objectSyntax
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
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
InvokeAsync
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
httpContext | Microsoft.AspNetCore.Http.HttpContext | - |
contextAccessor | Microsoft.AspNetCore.Http.IHttpContextAccessor | The IHttpContextAccessor injected from DI for the current request, |
Returns
Type:System.Threading.Tasks.Task
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?