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 @@ -84,7 +84,7 @@ public async Task<Result> CreateFloatForContractProduct(FloatCommands.CreateFloa
// Generate the float id
Guid floatId = IdGenerationService.GenerateFloatAggregateId(command.EstateId, command.ContractId, command.ProductId);

Result<FloatAggregate> getFloatResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest<FloatAggregate>(floatId, ct), floatId, cancellationToken);
Result<FloatAggregate> getFloatResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest<FloatAggregate>(floatId, ct), floatId, cancellationToken, false);
if (getFloatResult.IsFailed)
return ResultHelpers.CreateFailure(getFloatResult);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,17 @@
using SimpleResults;
using TransactionProcessor.Aggregates;
using TransactionProcessor.Models.Contract;
using TransactionProcessor.Models.Estate;
using TransactionProcessor.Models.Merchant;
using Contract = TransactionProcessor.Models.Contract.Contract;
using Operator = TransactionProcessor.Models.Estate.Operator;

namespace TransactionProcessor.BusinessLogic.Services{
using Common;
using MessagingService.Client;
using MessagingService.DataTransferObjects;
using Microsoft.Extensions.Caching.Memory;
using Models;
using OperatorInterfaces;
using SecurityService.Client;
using SecurityService.DataTransferObjects.Responses;
using Shared.DomainDrivenDesign.EventSourcing;
using Shared.EventStore.Aggregate;
using Shared.General;
using Shared.Logger;
using System;
using System.Collections.Generic;
Expand All @@ -30,7 +24,6 @@ namespace TransactionProcessor.BusinessLogic.Services{
using System.Threading.Tasks;
using TransactionProcessor.BusinessLogic.Manager;
using TransactionProcessor.BusinessLogic.Requests;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;

public interface ITransactionDomainService
{
Expand Down
Loading