diff --git a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/ClientMethodsAnalyzer.cs b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/ClientMethodsAnalyzer.cs index f3b8ccb049e..5b20f6ffb86 100644 --- a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/ClientMethodsAnalyzer.cs +++ b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/ClientMethodsAnalyzer.cs @@ -15,6 +15,7 @@ public class ClientMethodsAnalyzer : ClientAnalyzerBase private const string AsyncSuffix = "Async"; private const string AzureNamespace = "Azure"; + private const string SystemNamespace = "System"; private const string PageableTypeName = "Pageable"; private const string AsyncPageableTypeName = "AsyncPageable"; private const string BinaryDataTypeName = "BinaryData"; @@ -157,7 +158,7 @@ bool IsValidPageable(ITypeSymbol typeSymbol) } var pageableReturn = pageableTypeSymbol.TypeArguments.Single(); - if (!IsOrImplements(pageableReturn, BinaryDataTypeName, AzureNamespace)) + if (!IsOrImplements(pageableReturn, BinaryDataTypeName, SystemNamespace)) { return false; } @@ -201,7 +202,7 @@ bool IsValidPageable(ITypeSymbol typeSymbol) return; } - if (!IsOrImplements(operationReturn, BinaryDataTypeName, AzureNamespace)) + if (!IsOrImplements(operationReturn, BinaryDataTypeName, SystemNamespace)) { context.ReportDiagnostic(Diagnostic.Create(Descriptors.AZC0018, method.Locations.FirstOrDefault()), method); }