{"id":45677706,"url":"https://github.com/conductor-sdk/csharp-sdk-examples","last_synced_at":"2026-02-24T13:07:55.479Z","repository":{"id":104819646,"uuid":"580947000","full_name":"conductor-sdk/csharp-sdk-examples","owner":"conductor-sdk","description":"C# SDK examples for Netflix Conductor","archived":false,"fork":false,"pushed_at":"2024-01-04T08:49:30.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-01-04T09:58:14.192Z","etag":null,"topics":["conductor","csharp","sdk","workflow"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/conductor-sdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-12-21T21:32:13.000Z","updated_at":"2023-08-22T23:15:19.000Z","dependencies_parsed_at":"2024-01-04T10:03:20.075Z","dependency_job_id":null,"html_url":"https://github.com/conductor-sdk/csharp-sdk-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/conductor-sdk/csharp-sdk-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conductor-sdk%2Fcsharp-sdk-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conductor-sdk%2Fcsharp-sdk-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conductor-sdk%2Fcsharp-sdk-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conductor-sdk%2Fcsharp-sdk-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conductor-sdk","download_url":"https://codeload.github.com/conductor-sdk/csharp-sdk-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conductor-sdk%2Fcsharp-sdk-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29783615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conductor","csharp","sdk","workflow"],"created_at":"2026-02-24T13:07:54.546Z","updated_at":"2026-02-24T13:07:55.470Z","avatar_url":"https://github.com/conductor-sdk.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C# QuickStart Example\nThis repository contains sample applications that demonstrates the various features of Conductor C# SDK.\n\n## SDK Features\nC# SDK for Conductor allows you to:\n1. Create workflow using Code\n2. Execute workflows\n3. Create workers for task execution and framework (TaskRunner) for executing workers and communicating with the server.\n4. Support for all the APIs such as\n    1. Managing tasks (poll, update etc.),\n    2. Managing workflows (start, pause, resume, terminate, get status, search etc.)\n    3. Create and update workflow and task metadata\n    4. User and event management\n\n\n### Running Example\n\n\u003e **Note**\nObtain KEY and SECRET from the playground or your Conductor server. [Quick tutorial for playground](https://orkes.io/content/docs/getting-started/concepts/access-control-applications#access-keys)\n\nExport variables\n```shell\nexport KEY=\nexport SECRET=\nexport CONDUCTOR_SERVER_URL=https://play.orkes.io/api\n```\n\nRun the main program\n```shell\ndotnet run\n```\n\n## Workflow\nWe create a simple 2-step workflow that fetches the user details and sends an email.\n\n\u003ctable\u003e\u003ctr\u003e\u003cth\u003eVisual\u003c/th\u003e\u003cth\u003eCode\u003c/th\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"50%\"\u003e\u003cimg src=\"workflow.png\" width=\"250px\"\u003e\u003c/td\u003e\n\u003ctd\u003e\n\u003cpre\u003e \nvar getUserInfoTask = new SimpleTask(\"get_user_info\", \"get_user_info\")\n                    .WithInput(\"userId\", \"${workflow.input.userId}\");\nvar emailOrSmsTask = new SwitchTask(\"emailorsms\", \"${workflow.input.notificationPref}\")\n        .WithDecisionCase(\n            WorkflowInput.NotificationPreference.EMAIL.ToString(),\n            new SimpleTask(\"send_email\", \"send_email\")\n                    .WithInput(\"email\", \"${get_user_info.output.email}\")\n        )\n        .WithDecisionCase(\n            WorkflowInput.NotificationPreference.SMS.ToString(),\n            new SimpleTask(\"send_sms\", \"send_sms\")\n                    .WithInput(\"phoneNumber\", \"${get_user_info.output.phoneNumber}\")\n        );\nreturn new ConductorWorkflow()\n    .WithName(\"user_notification\")\n    .WithVersion(1)\n    .WithInputParameter(\"userId\")\n    .WithInputParameter(\"notificationPref\")\n    .WithTask(getUserInfoTask, emailOrSmsTask);\n\u003c/pre\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n## Worker\nWorkers are a simple interface implementation. See [GetUserInfo.cs](Examples/Worker/GetUserInfo.cs) for more details.\n\n## Executing Workflows\n\nThere are two ways to execute a workflow:\n1. Synchronously - useful for short duration workflows that completes within a few second.  \n2. Asynchronously - workflows that runs for longer period\n\n### Synchronous Workflow Execution\n\n```csharp\nWorkflowResourceApi#ExecuteWorkflow(...)\n```\n\n### Asynchronous Workflow Execution\n\n```csharp\nWorkflowResourceApi#StartWorkflow(...)\n```\n\nSee [Main.cs](Examples/Main.cs) for complete code sample of workflow execution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconductor-sdk%2Fcsharp-sdk-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconductor-sdk%2Fcsharp-sdk-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconductor-sdk%2Fcsharp-sdk-examples/lists"}