Guides

Task-focused guides for common Drasi .NET scenarios.

These guides cover the patterns you reach for when you build a real application with Drasi.

New here? Start with Getting started and Concepts first, then come back for the deeper dives below.


Use the generic host

Register Engine with AddDrasi so the generic host starts, configures, and stops it.

Push changes and handle diffs

Drive an in-process source with PushChangeAsync and handle query diffs in C#.

Work with plugins

Discover, install, and load native Drasi source and reaction plugins from ghcr.io.

Stream results with IAsyncEnumerable

Subscribe to query diffs, lifecycle events, and logs as IAsyncEnumerable sequences.

Load a topology from configuration

Build and start an engine from JSON or IConfiguration.

Handle errors

Catch DrasiException and branch on stable error codes.