Otter SDK Reference
Version:

OtterContext Class

Standard implementation of an IOtterContext.

Inheritance Hierarchy

  • object
    • Inedo.Otter.OtterContext

Syntax

public class OtterContext : IOtterContext

Constructors

Name Description
OtterContext

Intitializes a new instance of the OtterContext class.

Properties

Name Description
EnvironmentId

Gets the current environment ID if applicable.

HostId

Gets the current server host ID if applicable.

JobId

Gets the current job ID if applicable.

PlanName

Gets the current plan name if applicable.

ServerId

Gets the current server ID if applicable.

ServerRoleId

Gets the current server role ID if applicable.

Methods

Name Description
WithEnvironment(int? environmentId)

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

WithJob(int? jobId)

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

WithServer(int? serverId)

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

WithServerRole(int? serverRoleId)

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