Class DummyHttpContextAccessor
Implementation of the IHttpContextAccessor interface for testing purposes. With this implementation we get a DefaultHttpContext.
Inheritance
System.Object
DummyHttpContextAccessor
Namespace: Celerik.NetCore.Services
Assembly: cs.temp.dll.dll
Syntax
public class DummyHttpContextAccessor : IHttpContextAccessor
Constructors
DummyHttpContextAccessor(String, Object)
Initializes a new instance of the class.
Declaration
public DummyHttpContextAccessor(string userClaimKey = null, object userClaimValue = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userClaimKey | The user claim key. |
| System.Object | userClaimValue | The user claim value. |
Properties
HttpContext
Gets or sets a reference to the current HttpContext.
Declaration
public HttpContext HttpContext { get; set; }
Property Value
| Type | Description |
|---|---|
| HttpContext |