FcqrsServiceCollectionExtensionsType
PackageFCQRS
`services.AddFcqrs(...)` and `serviceProvider.Aggregate<T>()`.
Specification
Kind
Type
Members
3
Examples
0
AddFcqrsSignature
FcqrsServiceCollectionExtensions.AddFcqrs(services, connectionString, clusterName, databaseType)
AddFcqrsSignature
FcqrsServiceCollectionExtensions.AddFcqrs(services, connectionString, clusterName)
AggregateFactorySignature
FcqrsServiceCollectionExtensions.AggregateFactory(serviceProvider)
Summary
| Name | Signature | Synopsis |
|---|---|---|
| AddFcqrs | FcqrsServiceCollectionExtensions.AddFcqrs(services, connectionString, clusterName, databaseType) | Register FCQRS with the selected SQL journal provider and startup wiring. |
| AddFcqrs | FcqrsServiceCollectionExtensions.AddFcqrs(services, connectionString, clusterName) | Register a SQLite-backed FCQRS actor system and the startup wiring. |
| AggregateFactory | FcqrsServiceCollectionExtensions.AggregateFactory(serviceProvider) | Resolve a registered aggregate's entity-ref factory by its CLR type. |
FcqrsServiceCollectionExtensions.AddFcqrs(services, connectionString, clusterName, databaseType)
Member
Register FCQRS with the selected SQL journal provider and startup wiring.
Install the application's ADO.NET provider, such as Npgsql for PostgreSQL,
Microsoft.Data.SqlClient for SQL Server, or Oracle.ManagedDataAccess.Core for Oracle.
Parameters
| Name | Type | Description |
|---|---|---|
| services | IServiceCollection | |
| connectionString | string | |
| clusterName | string | |
| databaseType | DBType |
Returns
FcqrsBuilder
Register a SQLite-backed FCQRS actor system and the startup wiring. Returns
a builder for fluent .AddAggregate / .AddSaga / .AddProjection registration.
IConfiguration and ILoggerFactory are taken from the container.
Parameters
| Name | Type | Description |
|---|---|---|
| services | IServiceCollection | |
| connectionString | string | |
| clusterName | string |
Returns
FcqrsBuilder
Resolve a registered aggregate's entity-ref factory by its CLR type. Use
inside a saga's `create` delegate to reference the aggregates it coordinates.
Parameters
| Name | Type | Description |
|---|---|---|
| serviceProvider | IServiceProvider |
Returns
AggregateFactory