Browse Source

Merge pull request #10550 from abpframework/maliming/WebSockets

Skip web socket in `AspNetCoreUnitOfWorkTransactionBehaviourProvider`.
pull/10608/head
Halil İbrahim Kalkan 5 years ago
committed by GitHub
parent
commit
49e821aebd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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