Otter SDK Reference
Version:

WithEnvironment(int? environmentId) Method

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

Syntax

public OtterContext WithEnvironment(int? environmentId)

Parameters

environmentId
Type: int?

The new environment ID.

Returns

Copied context.