You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [LongRunningTasks sample](../../../samples/LongRunningTasks) for a complete working example demonstrating:
460
+
<!-- TODO: Remove mlc-disable block after merging to main -->
461
+
<!-- mlc-disable -->
462
+
See the [LongRunningTasks sample](https://github.com/modelcontextprotocol/csharp-sdk/tree/main/samples/LongRunningTasks) for a complete working example demonstrating:
463
+
<!-- mlc-enable -->
461
464
462
465
- Server setup with a file-based `IMcpTaskStore` for durability
463
466
- Explicit task creation via `IMcpTaskStore` in tools returning `McpTask`
@@ -558,7 +561,10 @@ public class JobProcessor(IMcpTaskStore taskStore)
558
561
559
562
### Simplified Example: File-Based Task Store
560
563
561
-
The [LongRunningTasks sample](../../../samples/LongRunningTasks) demonstrates a simplified fault-tolerant approach using the file system. The `FileBasedMcpTaskStore` persists task state to disk, allowing tasks to survive server restarts:
564
+
<!-- TODO: Remove mlc-disable block after merging to main -->
565
+
<!-- mlc-disable -->
566
+
The [LongRunningTasks sample](https://github.com/modelcontextprotocol/csharp-sdk/tree/main/samples/LongRunningTasks) demonstrates a simplified fault-tolerant approach using the file system. The `FileBasedMcpTaskStore` persists task state to disk, allowing tasks to survive server restarts:
0 commit comments