Aleator.DependencyInjection
0.3.0-preview.1
dotnet add package Aleator.DependencyInjection --version 0.3.0-preview.1
NuGet\Install-Package Aleator.DependencyInjection -Version 0.3.0-preview.1
<PackageReference Include="Aleator.DependencyInjection" Version="0.3.0-preview.1" />
<PackageVersion Include="Aleator.DependencyInjection" Version="0.3.0-preview.1" />
<PackageReference Include="Aleator.DependencyInjection" />
paket add Aleator.DependencyInjection --version 0.3.0-preview.1
#r "nuget: Aleator.DependencyInjection, 0.3.0-preview.1"
#:package Aleator.DependencyInjection@0.3.0-preview.1
#addin nuget:?package=Aleator.DependencyInjection&version=0.3.0-preview.1&prerelease
#tool nuget:?package=Aleator.DependencyInjection&version=0.3.0-preview.1&prerelease
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()registersIUniverseFactory(fresh, deterministically seededUniverseper call) andAleatorOptions.AddInferenceEngine<TIn,TOut>(...)exposes a model + inference delegate as a thread-safeIInferenceEngine<TIn,TOut>for controllers and background services.- Pairs with Aleator.MLNet for
PredictionEngine-style scoring overIDataView.
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 | Versions 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. |
-
net10.0
- Aleator.Core (>= 0.3.0-preview.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- System.Numerics.Tensors (>= 10.0.9)
-
net8.0
- Aleator.Core (>= 0.3.0-preview.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- System.Diagnostics.DiagnosticSource (>= 10.0.11)
- System.Numerics.Tensors (>= 10.0.9)
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 |