Typed by default
Actor references encode request and response types, moving entire classes of messaging errors to compile time.
A lightweight actor framework for C# with typed messages, predictable lifecycles, and fast in-process delivery.
dotnet add package Nixie --version 1.2.5Actor references encode request and response types, moving entire classes of messaging errors to compile time.
Bound inboxes, admission-aware TryAsk and TrySend, and priority control messages give overload an explicit shape.
Actors, routers, timers, dependency injection, and graceful shutdown—without a distributed runtime to operate.
Implement one interface, spawn a typed reference, and send. Nixie serializes each actor’s work while the Task Parallel Library handles execution.
Learn the actor model ↗public sealed class CounterActor
: IActor<Increment>
{
private int count;
public Task Receive(Increment _) {
count++;
return Task.CompletedTask;
}
}
using ActorSystem system = new();
var counter = system.Spawn<CounterActor, Increment>();
counter.Send(new Increment());