@@ -23,14 +23,14 @@ public static partial class {{name}}OperationsExtensions
2323 /// {{ToXmlDoc api.description}}
2424 /// </param>
2525 {{ end }}
26- public static {{GetReturnType api.operation "void"}} {{GetMethodName api.operation ""}}(
26+ public static {{GetReturnType api.operation "void"}} {{GetOperationId api.operation ""}}(
2727 this I{{name}}Operations operations
2828{{ for parameter in api.operation.parameters}}
2929 ,{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}
3030{{end}}
3131 )
3232 {
33- {{GetReturnType api.operation "return"}} operations.{{GetMethodName api.operation "Async"}}(
33+ {{GetReturnType api.operation "return"}} operations.{{GetOperationId api.operation "Async"}}(
3434{{ for parameter in api.operation.parameters}}
3535 {{GetDotNetNameOpenApiParameter parameter "false"}},
3636{{end}}
@@ -50,14 +50,14 @@ public static partial class {{name}}OperationsExtensions
5050 /// {{ToXmlDoc parameter.description}}
5151 /// </param>
5252 {{end}}
53- public static T {{GetMethodName api.operation ""}}<T>(
53+ public static T {{GetOperationId api.operation ""}}<T>(
5454 this I{{name}}Operations operations
5555{{ for parameter in api.operation.parameters}}
5656 ,{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}
5757{{end}}
5858 )
5959 {
60- return operations.{{GetMethodName api.operation "Async"}}<T>(
60+ return operations.{{GetOperationId api.operation "Async"}}<T>(
6161{{ for parameter in api.operation.parameters}}
6262 {{GetDotNetNameOpenApiParameter parameter "false"}},
6363{{end}}
@@ -80,15 +80,15 @@ public static partial class {{name}}OperationsExtensions
8080 /// <param name="cancellationToken">
8181 /// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
8282 /// </param>
83- public static async Task{{GetReturnType api.operation "<>"}} {{GetMethodName api.operation "Async"}}(
83+ public static async Task{{GetReturnType api.operation "<>"}} {{GetOperationId api.operation "Async"}}(
8484 this I{{name}}Operations operations,
8585{{ for parameter in api.operation.parameters}}
8686 {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}},
8787{{ end }}
8888 CancellationToken cancellationToken = default(CancellationToken))
8989 {
9090 {{if IfReturnType api.operation "stream"}}
91- var _result = await operations.{{GetMethodName api.operation "WithHttpMessagesAsync"}}(
91+ var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}(
9292{{ for parameter in api.operation.parameters}}
9393 {{GetDotNetNameOpenApiParameter parameter "false"}},
9494{{end}}
@@ -98,7 +98,7 @@ public static partial class {{name}}OperationsExtensions
9898 {{GetReturnType api.operation "_result.Body"}};
9999 {{end}}
100100 {{if IfReturnType api.operation "obj"}}
101- using (var _result = await operations.{{GetMethodName api.operation "WithHttpMessagesAsync"}}(
101+ using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}(
102102{{ for parameter in api.operation.parameters}}
103103 {{GetDotNetNameOpenApiParameter parameter "false"}},
104104{{end}}
@@ -109,7 +109,7 @@ public static partial class {{name}}OperationsExtensions
109109 }
110110 {{end}}
111111 {{if IfReturnType api.operation "void"}}
112- using (var _result = await operations.{{GetMethodName api.operation "WithHttpMessagesAsync"}}(
112+ using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}(
113113{{ for parameter in api.operation.parameters}}
114114 {{GetDotNetNameOpenApiParameter parameter "false"}},
115115{{end}}
@@ -135,14 +135,14 @@ public static partial class {{name}}OperationsExtensions
135135 /// <param name="cancellationToken">
136136 /// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
137137 /// </param>
138- public static async Task<T> {{GetMethodName api.operation "Async"}}<T>(
138+ public static async Task<T> {{GetOperationId api.operation "Async"}}<T>(
139139 this I{{name}}Operations operations,
140140{{ for parameter in api.operation.parameters}}
141141 {{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}},
142142{{ end }}
143143 CancellationToken cancellationToken = default(CancellationToken))
144144 {
145- using (var _result = await operations.{{GetMethodName api.operation "WithHttpMessagesAsync"}}<T>(
145+ using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}<T>(
146146{{ for parameter in api.operation.parameters}}
147147 {{GetDotNetNameOpenApiParameter parameter "false"}},
148148{{end}}
0 commit comments