Remove unused parameter.
This commit is contained in:
Родитель
dfeaff33c0
Коммит
d6b2e7b3f6
|
@ -26,7 +26,7 @@ namespace AutoRest.CSharp.V3.CodeGen
|
|||
_typeFactory = typeFactory;
|
||||
}
|
||||
|
||||
public bool WriteClient(ServiceClient operationGroup, string rootNamespace)
|
||||
public bool WriteClient(ServiceClient operationGroup)
|
||||
{
|
||||
Header();
|
||||
using var _ = UsingStatements();
|
||||
|
@ -38,14 +38,14 @@ namespace AutoRest.CSharp.V3.CodeGen
|
|||
{
|
||||
foreach (var method in operationGroup.Methods)
|
||||
{
|
||||
WriteOperation(method, cs.Namespace, rootNamespace);
|
||||
WriteOperation(method, cs.Namespace);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private void WriteOperation(ClientMethod operation, CSharpNamespace? @namespace, string rootNamespace)
|
||||
private void WriteOperation(ClientMethod operation, CSharpNamespace? @namespace)
|
||||
{
|
||||
//TODO: Handle multiple responses
|
||||
var schemaResponse = operation.ResponseType;
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace AutoRest.CSharp.V3.Plugins
|
|||
foreach (var client in clients)
|
||||
{
|
||||
var writer = new ClientWriter(typeFactory);
|
||||
writer.WriteClient(client, configuration.Namespace);
|
||||
writer.WriteClient(client);
|
||||
await autoRest.WriteFile($"Generated/Operations/{client.Name}.cs", writer.ToFormattedCode(), "source-file-csharp");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче