Browse Source

Skip web socket in `AspNetCoreUnitOfWorkTransactionBehaviourProvider`.

pull/10550/head
maliming 4 years ago
parent
commit
fc6fe9753f
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 5
      framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Uow/AspNetCoreUnitOfWorkTransactionBehaviourProvider.cs

5
framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Uow/AspNetCoreUnitOfWorkTransactionBehaviourProvider.cs

@ -22,6 +22,11 @@ namespace Volo.Abp.AspNetCore.Uow
return null;
}
if (httpContext.WebSockets.IsWebSocketRequest)
{
return null;
}
var currentUrl = httpContext.Request.Path.Value;
if (currentUrl != null)
{

Loading…
Cancel
Save