|
|
@ -65,13 +65,8 @@ namespace Volo.Abp.AspNetCore.Auditing |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var endpoint = httpContext.GetEndpoint(); |
|
|
var endpoint = httpContext.GetEndpoint(); |
|
|
if (endpoint == null) |
|
|
var actionDescriptor = endpoint?.Metadata.GetMetadata<ActionDescriptor>(); |
|
|
{ |
|
|
if (!(actionDescriptor is ControllerActionDescriptor)) |
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var actionDescriptor = endpoint.Metadata.GetMetadata<ActionDescriptor>(); |
|
|
|
|
|
if (actionDescriptor != null && !(actionDescriptor is ControllerActionDescriptor)) |
|
|
|
|
|
{ |
|
|
{ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|