eShopOnContainers icon indicating copy to clipboard operation
eShopOnContainers copied to clipboard

[Ordering] BeginTransactionAsync null check.

Open LangSensei opened this issue 2 years ago • 0 comments

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?

LangSensei avatar Jun 27 '22 08:06 LangSensei