|
@ -3,6 +3,7 @@ |
|
|
using Microsoft.Extensions.Logging; |
|
|
using Microsoft.Extensions.Logging; |
|
|
|
|
|
|
|
|
public class TransactionBehaviour<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> |
|
|
public class TransactionBehaviour<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> |
|
|
|
|
|
where TRequest : IRequest<TResponse> |
|
|
{ |
|
|
{ |
|
|
private readonly ILogger<TransactionBehaviour<TRequest, TResponse>> _logger; |
|
|
private readonly ILogger<TransactionBehaviour<TRequest, TResponse>> _logger; |
|
|
private readonly OrderingContext _dbContext; |
|
|
private readonly OrderingContext _dbContext; |
|
|