Orleans.FSharp 3.0.2

dotnet add package Orleans.FSharp --version 3.0.2
                    
NuGet\Install-Package Orleans.FSharp -Version 3.0.2
                    
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="Orleans.FSharp" Version="3.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Orleans.FSharp" Version="3.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Orleans.FSharp" />
                    
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 Orleans.FSharp --version 3.0.2
                    
#r "nuget: Orleans.FSharp, 3.0.2"
                    
#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 Orleans.FSharp@3.0.2
                    
#: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=Orleans.FSharp&version=3.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Orleans.FSharp&version=3.0.2
                    
Install as a Cake Tool

Orleans.FSharp

Idiomatic F# computation expressions and helpers for Microsoft Orleans grain development.

What it does

Orleans.FSharp replaces verbose C#-style grain implementations with a declarative grain {} computation expression. Define state, message handlers, persistence, timers, reminders, and streaming in a single expression. Concurrency is controlled per message type with interleaveMessage typeof<'Msg>, and FSharpGrain.post gives true fire-and-forget ([OneWay]) calls.

Modules included

GrainState | GrainRef | GrainBatch | Streaming | BroadcastChannel | Logging | Reminders | Timers | Observers | Filters | RequestCtx | Transactions | Versioning | GrainResilience | Shutdown | StateMigration | Serialization | FSharpSerialization | Scripting | Kubernetes | GrainDirectory | Immutable | StreamProviders

Quick example

open Orleans.FSharp

type CounterMsg = Increment | GetCount

let counterGrain = grain {
    defaultState 0
    handle (fun state msg -> task {
        match msg with
        | Increment  -> return state + 1, box ()
        | GetCount   -> return state,     box state
    })
    persist "Default"
}
Package Purpose
Orleans.FSharp.Runtime Silo and client hosting via siloConfig {} CE
Orleans.FSharp.CodeGen C# bridge for Orleans Roslyn source generators
Orleans.FSharp.Testing Test harness, mocks, and FsCheck integration
Orleans.FSharp.EventSourcing Event-sourced grains via eventSourcedGrain {} CE
Orleans.FSharp.Analyzers F# analyzer detecting async {} usage

Documentation

Full docs and examples: https://github.com/Neftedollar/orleans-fsharp

License

MIT

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 (3)

Showing the top 3 NuGet packages that depend on Orleans.FSharp:

Package Downloads
Orleans.FSharp.Runtime

F# computation expressions for configuring Orleans silos and clients — siloConfig {}, clientConfig {}, GrainDiscovery, and Serilog integration.

Orleans.FSharp.EventSourcing

Declarative event sourcing for Orleans grains in F# — eventSourcedGrain {} CE with apply/handle, JournaledGrain bridge, and Marten configuration helpers.

Orleans.FSharp.Testing

Test utilities for Orleans.FSharp grains — TestHarness, GrainMock, GrainArbitrary (TypeShape-based FsCheck), FsCheckHelpers, and LogCapture.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.2 103 8/8/2026
3.0.1 172 6/29/2026
3.0.0 162 6/29/2026
2.0.0-alpha.1 100 4/28/2026
1.0.0 329 4/3/2026