This commit is contained in:
Michael Yanni 2019-12-05 20:28:55 -08:00
Родитель dfeaff33c0
Коммит d6b2e7b3f6
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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");
}