Orleans.FSharp 1.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Orleans.FSharp --version 1.0.0
                    
NuGet\Install-Package Orleans.FSharp -Version 1.0.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="Orleans.FSharp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Orleans.FSharp" Version="1.0.0" />
                    
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 1.0.0
                    
#r "nuget: Orleans.FSharp, 1.0.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 Orleans.FSharp@1.0.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=Orleans.FSharp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Orleans.FSharp&version=1.0.0
                    
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, streaming, and placement strategy in a single expression.

Modules included

GrainState | GrainRef | Streaming | BroadcastChannel | Logging | Reminders | Timers | Observers | Filters | RequestCtx | Transactions | Versioning | Telemetry | Shutdown | StateMigration | Serialization | FSharpSerialization | Scripting | Kubernetes | GrainDirectory | GrainServices | GrainExtensions | 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
2.0.0-alpha.1 67 4/28/2026
1.0.0 284 4/3/2026