eShopOnContainers
eShopOnContainers copied to clipboard
[Ordering] BeginTransactionAsync null check.
https://github.com/dotnet-architecture/eShopOnContainers/blob/37474024fa538f19a2d47db38ca1fa9b3d5d617b/src/Services/Ordering/Ordering.Infrastructure/OrderingContext.cs#L58-L65
https://github.com/dotnet-architecture/eShopOnContainers/blob/37474024fa538f19a2d47db38ca1fa9b3d5d617b/src/Services/Ordering/Ordering.API/Application/Behaviors/TransactionBehaviour.cs#L38-L53
Why is BeginTransactionAsync missing null check? Shouldn't we throw an exception when the current transaction is occupied?