docs/documentation/clientsdks/csharp-sdk.md
!!! info "Source" GitHub: conductor-oss/csharp-sdk | Report issues and contribute on GitHub.
Show support for the Conductor OSS. Please help spread the awareness by starring Conductor repo.
dotnet add package conductor-csharp
Configure the authentication settings if your Conductor server requires authentication.
authenticationSettings: new OrkesAuthenticationSettings(
KeyId: "key",
KeySecret: "secret"
)
See Access Control for more details on role-based access control with Conductor and generating API keys for your environment.
using Conductor.Api;
using Conductor.Client;
using Conductor.Client.Authentication;
var configuration = new Configuration() {
BasePath = basePath,
AuthenticationSettings = new OrkesAuthenticationSettings("keyId", "keySecret")
};
var workflowClient = configuration.GetClient<WorkflowResourceApi>();
workflowClient.StartWorkflow(
name: "test-sdk-csharp-workflow",
body: new Dictionary<string, object>(),
version: 1
)
Browse all examples on GitHub: conductor-oss/csharp-sdk/csharp-examples
| Example | Type |
|---|---|
| Examples | directory |
| Humantaskexamples | file |
| Program | file |
| Runner | file |
| Testworker | file |
| Utils | directory |
| Workflowexamples | file |