Arta.Core 0.0.2

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Arta.Core --version 0.0.2
                    
NuGet\Install-Package Arta.Core -Version 0.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="Arta.Core" Version="0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Arta.Core" Version="0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Arta.Core" />
                    
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 Arta.Core --version 0.0.2
                    
#r "nuget: Arta.Core, 0.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 Arta.Core@0.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=Arta.Core&version=0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Arta.Core&version=0.0.2
                    
Install as a Cake Tool

Arta.Core

NuGet

Arta.Core is the core engine and default implementation library for the Arta CQRS framework. It contains the dispatcher engine, default handlers, and core abstractions needed to build CQRS-based applications.


Features

  • Dispatcher engine for commands and queries
  • Default command and query handler implementations
  • Support for streaming queries
  • Integration with Arta.Abstractions for fully decoupled CQRS

Installation

You can install Arta.Core via NuGet:

dotnet add package Arta.Core

Or via Package Manager:

Install-Package Arta.Core

Usage

1. Register Core services

In your application, register the core services with your dependency injection container using the provided extension method:

var services = new ServiceCollection();

// This method registers the dispatcher and any default core services
services.AddArtaCore();

var serviceProvider = services.BuildServiceProvider();

2. Using the Dispatcher

var dispatcher = serviceProvider.GetRequiredService<IDispatcher>();

// Sending a command
var result = await dispatcher.SendCommandAsync(new MyCommand());

// Sending a query
var queryResult = await dispatcher.SendQueryAsync(new MyQuery());

3. Streaming Queries

await foreach (var item in dispatcher.CreateQueryStreamAsync(new MyStreamingQuery()))
{
    Console.WriteLine(item);
}

Requirements

  • .NET 8.0 or higher
  • Arta.Abstractions (for decoupled contracts)

License

Apache-2.0 © VulcanTech Solutions NZ


Contributing

Feel free to fork the repository and submit pull requests. Unit tests should be included in pull request


Support

For questions or support, open an issue on the GitHub repository.

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 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.2.2-alpha.2025102603415... 118 10/26/2025
0.0.2.2-alpha.2025102523492... 112 10/25/2025
0.0.2.2-alpha.2025102523115... 108 10/25/2025
0.0.2.1-alpha-20251014 187 10/14/2025
0.0.2.1-alpha.2025101606310... 180 10/16/2025
0.0.2.1-alpha.2025101506500... 144 10/15/2025
0.0.2.1-alpha 117 10/11/2025
0.0.2 114 10/11/2025
0.0.2-alpha.20251015035641.48 150 10/15/2025
0.0.1-alpha.20251011055658.21 64 10/11/2025