Shuttle.Recall.Sql.EventProcessing 14.0.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Standard 2.0
Install-Package Shuttle.Recall.Sql.EventProcessing -Version 14.0.0
dotnet add package Shuttle.Recall.Sql.EventProcessing --version 14.0.0
<PackageReference Include="Shuttle.Recall.Sql.EventProcessing" Version="14.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Shuttle.Recall.Sql.EventProcessing --version 14.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Shuttle.Recall.Sql.EventProcessing, 14.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Shuttle.Recall.Sql.EventProcessing as a Cake Addin
#addin nuget:?package=Shuttle.Recall.Sql.EventProcessing&version=14.0.0

// Install Shuttle.Recall.Sql.EventProcessing as a Cake Tool
#tool nuget:?package=Shuttle.Recall.Sql.EventProcessing&version=14.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Sql Server

PM> Install-Package Shuttle.Recall.Sql.EventProcessing

A Sql Server implementation of the Shuttle.Recall event sourcing mechanism.

Event Processing

// use any of the supported DI containers
var container = new NinjectComponentContainer(new StandardKernel());

// This registers the event store dependencies provided by Shuttle.Recall 
// - also registers event handlers in referenced assemblies
container.RegisterEventStore();

// This registers the sql server implementations provided by Shuttle.Recall.Sql.Storage, for instance
container.RegisterEventStoreStorage();

// This registers the sql server implementations provided by Shuttle.Recall.Sql.EventProcessing, for instance
container.RegisterEventProcessing();

// The following is important to remember as it connects the event processing module to the pipeline factory
container.Resolve<EventProcessingModule>();

container.Register<IMyQueryFactory, MyQueryFactory>();
container.Register<IMyQuery, MyQuery>();

var processor = container.Resolve<IEventProcessor>();

using (container.Resolve<IDatabaseContextFactory>().Create("ProjectionConnectionName"))
{
    // Adds the relevant projection to the processor which keeps track of the projection position
    processor.AddProjection("ProjectionName");

    // Attaches the given event handler implementation to the projection, by name
    resolver.AddEventHandler<BowlingHandler>("ProjectionName");

    // A short-hand format for the above is as follows:
    // resolver.AddEventHandler<BowlingHandler>(processor.AddProjection("ProjectionName"));
}

processor.Start();

// wait for application run to complete

processor.Dispose();

Application Configuration File

<configuration>
	<configSections>
		<sectionGroup name="shuttle">
			<section 
				name="projection" 
				type="Shuttle.Recall.Sql.EventProcessing.ProjectionSection, Shuttle.Recall.Sql.EventProcessing" />
		</sectionGroup>
	</configSections>

	<shuttle>
		<projection eventStoreConnectionStringName="EventStore" eventProjectionConnectionStringName="EventProjection" />
	</shuttle>

	<connectionStrings>
		<clear />
		<add 
			name="EventStore" 
			connectionString="Data Source=.;Initial Catalog=EventStoreDatabase;Integrated Security=SSPI;" 
			providerName="System.Data.SqlClient" />
		<add 
			name="EventProjection" 
			connectionString="Data Source=.;Initial Catalog=EventProjectionDatabase;Integrated Security=SSPI;" 
			providerName="System.Data.SqlClient" />
	</connectionStrings>
</configuration>

The IDatabaseContextFactory and IDatabaseGateway implementation follow the structures as defined in the Shuttle.Core.Data package.

Registration / Activation

The required components may be registered by calling ComponentRegistryExtensions.RegisterEventProcessing(IComponentRegistry).

In order for the event processing module to attach to the IPipelineFactory you would need to resolve it using IComponentResolver.Resolve<EventProcessingModule>().

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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
14.0.0 90 5/29/2022
13.1.0 74 5/6/2022
13.0.2 96 4/9/2022
13.0.1 74 4/9/2022
13.0.0 69 3/21/2022
12.0.2 283 2/4/2021
12.0.1 292 11/8/2020
11.0.0 443 8/21/2019
10.2.0 387 5/27/2019
10.1.4 599 9/22/2018
10.1.3 599 9/16/2018
10.0.3 626 8/7/2018
10.0.2 700 7/8/2018
10.0.0 1,924 2/13/2018
8.0.12 664 10/14/2017
8.0.10 685 8/6/2017
8.0.9 709 7/2/2017
8.0.8 710 7/1/2017