Skip to content

The conductor-csharp repository provides the client SDKs to build task workers in C#

License

Notifications You must be signed in to change notification settings

rmindel/conductor-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netflix Conductor C# SDK

The conductor-csharp repository provides the client SDKs to build task workers in C#.

Building the task workers in C# mainly consists of the following steps:

  1. Setup conductor-csharp package
  2. Create and run task workers
  3. Create workflows using code
  4. API Documentation

Setup Conductor C# Package​

dotnet add package conductor-csharp

Configurations

Authentication Settings (Optional)

Configure the authentication settings if your Conductor server requires authentication.

  • keyId: Key for authentication.
  • keySecret: Secret for the key.
authenticationSettings: new OrkesAuthenticationSettings(
    KeyId: "key",
    KeySecret: "secret"
)

Access Control Setup

See Access Control for more details on role-based access control with Conductor and generating API keys for your environment.

Configure API Client

OrkesApiClient GetApiClient(string basePath, string keyId, string keySecret)
{
    return new OrkesApiClient(
        configuration: new Configuration()
        {
            BasePath = basePath
        },
        authenticationSettings: new OrkesAuthenticationSettings(
            keyId, keySecret
        )
    );
}

OrkesApiClient apiClient = GetApiClient(
    basePath: "https://play.orkes.io/api",
    keyId: "key",
    keySecret: "secret"
);
WorkflowResourceApi workflowClient = apiClient.GetClient<WorkflowResourceApi>();

workflowClient.StartWorkflow(
    name: "test-sdk-csharp-workflow",
    body: new Dictionary<string, object>(),
    version: 1
)

About

The conductor-csharp repository provides the client SDKs to build task workers in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.9%
  • Dockerfile 0.1%