Skip to content

Commit

Permalink
#340 - Register income events in ApiHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed May 14, 2021
1 parent 47da99c commit 7533797
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Money.Api/Domain/Hubs/ApiHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class ApiHub : Hub,
IEventHandler<CurrencyCreated>, IEventHandler<CurrencyDeleted>, IEventHandler<CurrencyDefaultChanged>, IEventHandler<CurrencySymbolChanged>,
IEventHandler<CurrencyExchangeRateSet>, IEventHandler<CurrencyExchangeRateRemoved>,
IEventHandler<OutcomeCreated>, IEventHandler<OutcomeDeleted>, IEventHandler<OutcomeAmountChanged>, IEventHandler<OutcomeDescriptionChanged>, IEventHandler<OutcomeWhenChanged>,
IEventHandler<IncomeCreated>, IEventHandler<IncomeDeleted>,
IEventHandler<PasswordChanged>, IEventHandler<EmailChanged>, IEventHandler<UserPropertyChanged>
{
private readonly FormatterContainer formatters;
Expand Down Expand Up @@ -129,6 +130,9 @@ private Task RaiseEvent<T>(T payload)
Task IEventHandler<OutcomeDescriptionChanged>.HandleAsync(OutcomeDescriptionChanged payload) => RaiseEvent(payload);
Task IEventHandler<OutcomeWhenChanged>.HandleAsync(OutcomeWhenChanged payload) => RaiseEvent(payload);

Task IEventHandler<IncomeCreated>.HandleAsync(IncomeCreated payload) => RaiseEvent(payload);
Task IEventHandler<IncomeDeleted>.HandleAsync(IncomeDeleted payload) => RaiseEvent(payload);

Task IEventHandler<PasswordChanged>.HandleAsync(PasswordChanged payload) => RaiseEvent(payload);
Task IEventHandler<EmailChanged>.HandleAsync(EmailChanged payload) => RaiseEvent(payload);
Task IEventHandler<UserPropertyChanged>.HandleAsync(UserPropertyChanged payload) => RaiseEvent(payload);
Expand Down

0 comments on commit 7533797

Please sign in to comment.