Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public async Task<Result> EmailStatement(MerchantStatementCommands.EmailMerchant
return ResultHelpers.CreateFailure(getTokenResult);
this.TokenResponse = getTokenResult.Data;

Result sendEmailResponseResult = await this.MessagingServiceClient.SendEmail(this.TokenResponse.AccessToken, sendEmailRequest, cancellationToken);
await this.MessagingServiceClient.SendEmail(this.TokenResponse.AccessToken, sendEmailRequest, cancellationToken);

Result stateResult = merchantStatementAggregate.EmailStatement(DateTime.Now, messageId);
if (stateResult.IsFailed)
Expand Down
4 changes: 2 additions & 2 deletions TransactionProcessor/Bootstrapper/RepositoryRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ public RepositoryRegistry()
this.AddSingleton<Func<IAggregateService>>(c => () => {

IAggregateService aggregateService = Startup.ServiceProvider.GetService<IAggregateService>();
if (CachedAggregatesAdded == false)
if (RepositoryRegistry.CachedAggregatesAdded == false)
{
aggregateService.AddCachedAggregate(typeof(EstateAggregate), null);
aggregateService.AddCachedAggregate(typeof(ContractAggregate), null);
aggregateService.AddCachedAggregate(typeof(OperatorAggregate), null);
aggregateService.AddCachedAggregate(typeof(MerchantAggregate), null);
CachedAggregatesAdded=true;
RepositoryRegistry.CachedAggregatesAdded=true;
}

return aggregateService;
Expand Down
Loading