Files
awesome-copilot/cookbook/copilot-sdk/dotnet
Anthony Shaw ab82accc08 Address review feedback: fix event handler leak, error handling, model alignment
- Move session.On handler outside loop to prevent handler accumulation (C#)
- Use TrySetResult instead of SetResult to avoid duplicate-set exceptions (C#)
- Wrap CreateSessionAsync in broader try/finally so client always stops (C#)
- Fix PersistentRalphLoop to use maxIterations parameter instead of hardcoded 10
- Align model name to gpt-5.1-codex-mini across all doc snippets
- Fix completion promise DONE -> COMPLETE in usage snippet
- Replace Claude references with generic model terminology
2026-02-11 06:35:14 -08:00
..
2026-02-02 14:01:22 +11:00
2026-02-02 14:01:22 +11:00

GitHub Copilot SDK Cookbook — .NET (C#)

This folder hosts short, practical recipes for using the GitHub Copilot SDK with .NET. Each recipe is concise, copypasteable, and points to fuller examples and tests.

Recipes

Contributing

Add a new recipe by creating a markdown file in this folder and linking it above. Follow repository guidance in CONTRIBUTING.md.

Status

These recipes are now complete and ready to use; the cookbook will continue to evolve as new scenarios are added.