Otter SDK Reference
Version:

WithServerRole(int? serverRoleId) Method

Returns a copied instance of the the current context with the specified server role ID.

Syntax

public OtterContext WithServerRole(int? serverRoleId)

Parameters

serverRoleId
Type: int?

The new server role ID.

Returns

Copied context.