Constructor TestSessionContext
TestSessionContext(TSessionToken?, string?, IPAddress?)
Initializes a new instance of the TestSessionContext<TSessionToken> class.
Declaration
public TestSessionContext(TSessionToken? token = null, string? device = null, IPAddress? ipAddress = null)
Parameters
| Type | Name | Description |
|---|---|---|
| TSessionToken | token | The token of the request's session, or null for a request without a session. The request's user ID precondition (see UserIdPrecondition) is the token's user ID. |
| string | device | The device making the request, or null for DefaultDevice. |
| IPAddress | ipAddress | The IP address of the device making the request, or null if it is not known. |