Skip to content

Commit

Permalink
Use interface instead of concrete type for filter
Browse files Browse the repository at this point in the history
  • Loading branch information
captainsafia committed Jul 29, 2021
1 parent 123380a commit ea7246b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ private string DefaultOperationIdSelector(ApiDescription apiDescription)
#if (!NETSTANDARD2_0)
return
actionDescriptor.AttributeRouteInfo?.Name
?? (actionDescriptor.EndpointMetadata.FirstOrDefault(m => m is EndpointNameMetadata) as EndpointNameMetadata)?.EndpointName;
?? (actionDescriptor.EndpointMetadata.FirstOrDefault(m => m is IEndpointNameMetadata) as IEndpointNameMetadata)?.EndpointName;
#else
return actionDescriptor.AttributeRouteInfo?.Name;
#endif
Expand Down

0 comments on commit ea7246b

Please sign in to comment.