Menu

A community Inngest SDK for .NET: durable workflows as plain C# classes
πŸ“°

A community Inngest SDK for .NET: durable workflows as plain C# classes

DEV Community: dotnetΒ·Dalibor KundratΒ·16 days ago
#q6eTznD0
#devtodotnet#devto#dev#inngest#enter
Reading 0:00
15s threshold

I come from the SaaS world. Over the last half year I worked with client, and I introduced Inngest. It was super helpful there, and I think Inngest has big potential in the .NET world.

So I built an SDK for it second time to opensource latest feature to .net eco.

inngest-dotnet is a community Inngest SDK for .NET. It speaks the same protocol as Inngest's official SDKs, supports Inngest as it is, and follows .NET conventions: dependency injection, IOptions , ILogger and CancellationToken .

A function is a class

using Inngest ;

public sealed record HelloRequested ( string Name ) : IInngestEventData { public static string EventName => "app/hello.requested" ; }

[ InngestFunction ( "say-hello" )] [ EventTrigger < HelloRequested >] public sealed class SayHello : InngestFunction < HelloRequested > { public override async Task < object ?> ExecuteAsync ( FunctionContext < HelloRequested > context , CancellationToken cancellationToken ) { var greeting = await context . Step .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.