Class WorkflowEnvironment
Workflow environment for testing with Temporal.
Namespace: Temporalio.Testing
Assembly: Temporalio.dll
Syntax
public class WorkflowEnvironment : object
Remarks
In modern versions of .NET, this implements IAsyncDisposable
which means it can be
used in an await using
block.
Constructors
WorkflowEnvironment(ITemporalClient)
Initializes a new instance of the WorkflowEnvironment class for the given client that does not support time skipping.
Declaration
public WorkflowEnvironment(ITemporalClient client)
Parameters
Type | Name | Description |
---|---|---|
ITemporalClient | client | Client to use for this environment. |
Properties
Client
Gets the client for this workflow environment.
Declaration
public ITemporalClient Client { get; }
Property Value
Type | Description |
---|---|
ITemporalClient |