EventFlow 0.50.3124

Async/await first CQRS+ES and DDD framework for .NET - http://geteventflow.net/

There is a newer version of this package available.
See the version list below for details.
Install-Package EventFlow -Version 0.50.3124
dotnet add package EventFlow --version 0.50.3124
<PackageReference Include="EventFlow" Version="0.50.3124" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EventFlow --version 0.50.3124
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

New: While EventFlow tries to limit the about of painful API changes, the
introduction of execution/command results are considered a necessary step
towards as better API.
Commands and command handlers have been updated to support execution
results. Execution results is meant to be an alternative to throwing domain
exceptions to do application flow. In short, before you were required to
throw an exception if you wanted to abort execution and "return" a failure
message.
The introduction of execution results changes this, as it allows
returning a failed result that is passed all the way back to the command
publisher. Execution results are generic and can thus contain e.g. any
validation results that a UI might need. The `ICommandBus.PublishAsync`
signature has changed to reflect this.
from
```csharp
Task<ISourceId> PublishAsync<TAggregate, TIdentity, TSourceIdentity>(
ICommand<TAggregate, TIdentity, TSourceIdentity> command)
where TAggregate : IAggregateRoot<TIdentity>
where TIdentity : IIdentity
where TSourceIdentity : ISourceId
```
to
```csharp
Task<TExecutionResult> PublishAsync<TAggregate, TIdentity, TExecutionResult>(
ICommand<TAggregate, TIdentity, TExecutionResult> command,
CancellationToken cancellationToken)
where TAggregate : IAggregateRoot<TIdentity>
where TIdentity : IIdentity
where TExecutionResult : IExecutionResult
```
Command handler signature has changed from
```csharp
Task ExecuteAsync(
TAggregate aggregate,
TCommand command,
CancellationToken cancellationToken);
```
to
```csharp
Task<TExecutionResult> ExecuteCommandAsync(
TAggregate aggregate,
TCommand command,
CancellationToken cancellationToken)
```
Migrating to the new structure should be seamless if your current code base
inherits its command handlers from the provided `CommandHandler<,,>` base
class.
Breaking: Source IDs on commands have been reworked to "make room" for
execution results on commands. The generic parameter from `ICommand<,,>`
and `ICommandHandler<,,,>` has been removed in favor of the new execution
results. `ICommand.SourceId` is now of type `ISourceId` instead of using
the generic type and the `ICommandBus.PublishAsync` no longer returns
`Task<ISourceId>`
To get code that behaves similar to the previous version, simply take the
`ISourceId` from the command, i.e., instead of this
```csharp
var sourceId = await commandBus.PublishAsync(command);
```
write this
```csharp
await commandBus.PublishAsync(command);
var sourceId = command.SourceId;
```
(`CancellationToken` and `.ConfigureAwait(false)` omitted fromt he above)
Breaking: Upgraded NuGet dependency on `RabbitMQ.Client` from `>= 4.1.3`
to `>= 5.0.1`

Showing the top 1 GitHub repositories that depend on EventFlow:

Repository Stars
twzhangyang/RestAirline
DDD+CQRS+EventSourcing+Hypermedia API+ASP.NET Core 3.1+Masstransit+docker+k8s

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
0.77.4077 8,896 12/10/2019
0.76.4014 10,890 10/19/2019
0.75.3970 5,484 9/12/2019
0.74.3948 13,537 7/1/2019
0.73.3933 3,063 6/11/2019
0.72.3914 5,092 5/28/2019
0.71.3834 7,958 4/17/2019
0.70.3824 1,284 4/11/2019
0.69.3772 9,907 2/12/2019
0.68.3728 36,488 12/3/2018
0.67.3697 7,921 10/14/2018
0.66.3673 1,538 9/28/2018
0.65.3664 5,192 9/22/2018
0.64.3598 4,912 8/27/2018
0.63.3581 4,117 8/7/2018
0.62.3569 20,689 7/5/2018
0.61.3524 1,831 6/26/2018
0.60.3490 1,055 6/18/2018
0.59.3396 1,668 5/23/2018
0.58.3377 878 5/13/2018
0.57.3359 1,633 4/30/2018
0.56.3328 861 4/24/2018
0.55.3323 770 4/24/2018
0.54.3261 2,490 2/25/2018
0.53.3204 1,036 1/25/2018
0.52.3178 1,938 11/2/2017
0.51.3155 834 10/25/2017
0.50.3124 807 10/21/2017
0.49.3031 2,051 9/7/2017
0.48.2937 1,820 7/11/2017
0.47.2894 1,236 6/28/2017
0.46.2886 1,099 5/29/2017
0.45.2877 815 5/28/2017
0.44.2832 1,257 5/12/2017
0.43.2806 958 5/5/2017
0.42.2755 915 5/2/2017
0.41.2727 815 4/27/2017
0.40.2590 3,641 3/30/2017
0.39.2553 1,062 1/16/2017
0.38.2454 1,032 12/2/2016
0.37.2424 887 11/8/2016
0.36.2315 2,141 10/18/2016
0.35.2247 1,113 9/6/2016
0.34.2221 830 8/23/2016
0.33.2190 823 8/16/2016
0.32.2163 884 7/4/2016
0.31.2106 857 6/30/2016
0.30.2019 898 6/16/2016
0.29.1973 2,635 4/19/2016
0.28.1852 853 4/5/2016
0.27.1765 4,068 2/25/2016
0.26.1714 869 2/20/2016
0.25.1695 860 2/15/2016
0.24.1563 1,266 1/25/2016
0.23.1470 1,788 12/5/2015
0.22.1393 1,755 11/19/2015
0.21.1312 1,051 10/26/2015
0.20.1274 908 10/22/2015
0.19.1225 891 10/19/2015
0.18.1181 1,089 10/7/2015
0.17.1134 884 9/28/2015
0.16.1120 889 9/27/2015
0.15.1057 920 9/24/2015
0.14.1051 901 9/23/2015
0.13.962 1,154 9/13/2015
0.12.891 932 9/4/2015
0.11.751 921 8/24/2015
0.10.642 899 8/17/2015
0.9.580 907 7/20/2015
0.8.560 929 5/29/2015
0.7.481 882 5/22/2015
0.6.456 895 5/18/2015
0.5.390 907 5/8/2015
0.4.353 889 5/5/2015
0.3.292 973 4/30/2015
Show less