Fleans.Worker 0.5.0

dotnet add package Fleans.Worker --version 0.5.0
                    
NuGet\Install-Package Fleans.Worker -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fleans.Worker" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fleans.Worker" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Fleans.Worker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fleans.Worker --version 0.5.0
                    
#r "nuget: Fleans.Worker, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fleans.Worker@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fleans.Worker&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Fleans.Worker&version=0.5.0
                    
Install as a Cake Tool

Fleans.Worker

Orleans worker-side primitives for Fleans plugin authors. Use this package when you want to implement a custom BPMN service-task plugin: it provides CustomTaskHandlerBase, the [WorkerPlacement] attribute, and the placement directors that route worker grains onto silos with Fleans:Role=Worker (or Combined).

Dependency closure

Fleans.Worker  →  Fleans.Application.Abstractions  →  Fleans.Domain.Abstractions

True leaf — depends only on Fleans.Application.Abstractions + Orleans SDK packages. No reference to Fleans.Application, Fleans.Domain, Fleans.Infrastructure, or any persistence project. Plugin authors get the surface they need with none of the engine internals.

Minimum consumer usage

public sealed class MyHandler : CustomTaskHandlerBase
{
    public MyHandler(ILogger<MyHandler> logger, IGrainFactory factory) : base(logger, factory) { }

    protected override string TaskType => "my-task";

    protected override Task<IDictionary<string, object?>> ExecuteAsync(
        IDictionary<string, object?> resolvedInputs,
        ExpandoObject variables,
        CustomTaskExecutionContext context,
        CancellationToken cancellationToken)
    {
        // your work here
        return Task.FromResult<IDictionary<string, object?>>(new Dictionary<string, object?>
        {
            ["__response"] = new { ok = true }
        });
    }
}

public static class MyPluginRegistration
{
    public static IServiceCollection AddMyPlugin(this IServiceCollection services) =>
        services.AddCustomTaskPlugin<MyHandler>(taskType: "my-task", displayName: "My Task");
}

Plugin packages share the engine's <VersionPrefix> track — every Fleans release bumps every plugin's NuGet version even when the plugin source is bit-identical (same precedent as Aspire.Hosting.* / Microsoft.Orleans.*).

See Fleans documentation for the full plugin-authoring guide and the Fleans.CustomWorkerHost worked example for hosting plugins outside the engine repo.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Fleans.Worker:

Package Downloads
Fleans.Plugins.RestCaller

Fleans REST caller plugin — backs <serviceTask type="rest-call"> with an HTTP request.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 110 5/29/2026
0.4.1 105 5/20/2026
0.4.0 111 5/19/2026
0.3.0 102 5/15/2026
0.2.0 115 5/12/2026
0.1.0 104 5/11/2026
0.1.0-rc.2 56 5/11/2026