Skip to content
Merged
Prev Previous commit
Next Next commit
address review comments.
  • Loading branch information
haiyuazhang committed Sep 15, 2025
commit e02d7b496231d3b46539b005be5c044dfb0ffd1d
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,10 @@ private MethodProvider BuildResourceServiceMethod(ResourceClientProvider resourc
private MethodProvider BuildServiceMethod(InputServiceMethod method, InputClient inputClient, bool isAsync, string? methodName = null)
{
var clientInfo = _clientInfos[inputClient];
List<FieldProvider> pathParameterFields = new List<FieldProvider>();
return method switch
{
InputPagingServiceMethod pagingMethod => new PageableOperationMethodProvider(this, _contextualPath, clientInfo, pagingMethod, isAsync, methodName),
_ => new ResourceOperationMethodProvider(this, _contextualPath, clientInfo, method, isAsync, methodName: methodName)
_ => new ResourceOperationMethodProvider(this, _contextualPath, clientInfo, method, isAsync, methodName)
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.IO;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
using System.Linq;
using System.Reflection.Metadata;

namespace Azure.Generator.Management.Providers
{
Expand Down Expand Up @@ -345,7 +344,7 @@ private MethodProvider BuildGetAllMethod(ResourceMethod getAll, bool isAsync)
return getAll.InputMethod switch
{
InputPagingServiceMethod pagingGetAll => new PageableOperationMethodProvider(this, _contextualPath, restClientInfo, pagingGetAll, isAsync, methodName),
_ => new ResourceOperationMethodProvider(this, _contextualPath, restClientInfo, getAll.InputMethod, isAsync, methodName: methodName)
_ => new ResourceOperationMethodProvider(this, _contextualPath, restClientInfo, getAll.InputMethod, isAsync, methodName)
};
}

Expand Down