Aleator.DependencyInjection 0.3.0-preview.1

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

Aleator.DependencyInjection

ASP.NET Core / generic-host integration for Aleator, the .NET 10 / C# port of the Figaro probabilistic programming library.

builder.Services.AddAleator(options => options.MasterSeed = 2026)
    .AddInferenceEngine<RiskRequest, RiskResponse>((universe, request) =>
    {
        // build the model in the fresh universe, observe request fields, run an engine
        return new RiskResponse(...);
    });
  • AddAleator() registers IUniverseFactory (fresh, deterministically seeded Universe per call) and AleatorOptions.
  • AddInferenceEngine<TIn,TOut>(...) exposes a model + inference delegate as a thread-safe IInferenceEngine<TIn,TOut> for controllers and background services.
  • Pairs with Aleator.MLNet for PredictionEngine-style scoring over IDataView.

The package depends on Aleator.Core; its only external dependency is Microsoft.Extensions.DependencyInjection.Abstractions. It deliberately does not reference Aleator.Library or Aleator.Algorithms: application delegates choose and compose those layers.

Quickstart: docs/quickstart-aspnetcore.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 Aleator.DependencyInjection:

Package Downloads
Aleator.MLNet

ML.NET adapter for Aleator — exposes probabilistic-model inference as an ML.NET CustomMapping transform and a prediction-engine facade, so ASP.NET Core teams consume Aleator posteriors through their existing ML.NET / DI surface.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0-preview.1 72 9/6/2026