Class TemporalCloudOperationsClient
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Client for Temporal Cloud Operations.
public class TemporalCloudOperationsClient : ITemporalCloudOperationsClient
- Inheritance
-
TemporalCloudOperationsClient
- Implements
- Inherited Members
Remarks
Clients are thread-safe and are encouraged to be reused to properly reuse the underlying connection.
Constructors
TemporalCloudOperationsClient(ITemporalConnection)
Initializes a new instance of the TemporalCloudOperationsClient class from an existing connection.
public TemporalCloudOperationsClient(ITemporalConnection connection)
Parameters
connection
ITemporalConnectionConnection for this client.
Remarks
WARNING: Cloud Operations API and its client are experimental and APIs may change.
Properties
CloudService
Gets the raw gRPC cloud service.
public CloudService CloudService { get; }
Property Value
Connection
Gets the connection associated with this client.
public ITemporalConnection Connection { get; }
Property Value
Methods
ConnectAsync(TemporalCloudOperationsClientConnectOptions)
Connect to the Temporal Cloud Operations API.
public static Task<TemporalCloudOperationsClient> ConnectAsync(TemporalCloudOperationsClientConnectOptions options)
Parameters
options
TemporalCloudOperationsClientConnectOptionsOptions for connecting.
Returns
- Task<TemporalCloudOperationsClient>
The connected client.
Remarks
WARNING: Cloud Operations API and its client are experimental and APIs may change.
CreateLazy(TemporalCloudOperationsClientConnectOptions)
Create a client to the Temporal Cloud Operations API that does not connect until first call.
public static TemporalCloudOperationsClient CreateLazy(TemporalCloudOperationsClientConnectOptions options)
Parameters
options
TemporalCloudOperationsClientConnectOptionsOptions for connecting.
Returns
- TemporalCloudOperationsClient
The not-yet-connected client.
Remarks
WARNING: Cloud Operations API and its client are experimental and APIs may change.