MPCore.Hosting
0.9.3
Prefix Reserved
dotnet add package MPCore.Hosting --version 0.9.3
NuGet\Install-Package MPCore.Hosting -Version 0.9.3
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="MPCore.Hosting" Version="0.9.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MPCore.Hosting" Version="0.9.3" />
<PackageReference Include="MPCore.Hosting" />
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 MPCore.Hosting --version 0.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MPCore.Hosting, 0.9.3"
#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 MPCore.Hosting@0.9.3
#: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=MPCore.Hosting&version=0.9.3
#tool nuget:?package=MPCore.Hosting&version=0.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MP Core
A backend framework for .NET 10 that makes the decisions every backend makes again, once, with a test for each: how a command runs, who opens and commits the transaction, how a message leaves with that transaction, how a failure becomes an HTTP or gRPC answer, how a token is validated, where logs and traces go.
This package is one of a cohort that shares one version. Most projects do not reference the packages by hand: they are generated.
dotnet tool install --global MPCore.Cli
dotnet new install MPCore.Templates
mpcore new backend --organization Acme --component Orders --output ./orders
| You write | MP Core does |
|---|---|
| A handler: a static method that takes a command and the ports it needs | Opens the transaction, runs validators first, saves, commits, and only then releases the messages the handler published |
| A business rule as a named class, checked by the aggregate | Reports it under its own code, as Problem Details or a rich gRPC status, in the caller's language |
RequireIdempotencyKey() on an endpoint |
Stores the key and the answer in the transaction that commits the change; a repeat receives the stored answer |
| An integration event raised by an aggregate | Delivers it to Kafka or RabbitMQ after the commit; a consumer's inbox stops a second delivery |
| Nothing | Token validation, protect-by-default endpoints, a named actor in every audit record, telemetry with redaction |
Learn more
- Source, documentation and the reference architecture: https://github.com/panahister/mpcore
- A complete example, three backends behind a gateway: https://github.com/panahister/mpcore-storefront-sample
- Release notes: https://github.com/panahister/mpcore/tree/main/docs/releases
Licensed under Apache-2.0.
| Product | Versions 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.
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- MPCore.Application (>= 0.9.3)
- MPCore.Observability (>= 0.9.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.