@@ -23,14 +23,14 @@ public static partial class {{name}}OperationsExtensions
23
23
/// {{ToXmlDoc api.description}}
24
24
/// </param>
25
25
{{ end }}
26
- public static {{GetReturnType api.operation "void"}} {{GetMethodName api.operation ""}}(
26
+ public static {{GetReturnType api.operation "void"}} {{GetOperationId api.operation ""}}(
27
27
this I{{name}}Operations operations
28
28
{{ for parameter in api.operation.parameters}}
29
29
,{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}
30
30
{{end}}
31
31
)
32
32
{
33
- {{GetReturnType api.operation "return"}} operations.{{GetMethodName api.operation "Async"}}(
33
+ {{GetReturnType api.operation "return"}} operations.{{GetOperationId api.operation "Async"}}(
34
34
{{ for parameter in api.operation.parameters}}
35
35
{{GetDotNetNameOpenApiParameter parameter "false"}},
36
36
{{end}}
@@ -50,14 +50,14 @@ public static partial class {{name}}OperationsExtensions
50
50
/// {{ToXmlDoc parameter.description}}
51
51
/// </param>
52
52
{{end}}
53
- public static T {{GetMethodName api.operation ""}}<T>(
53
+ public static T {{GetOperationId api.operation ""}}<T>(
54
54
this I{{name}}Operations operations
55
55
{{ for parameter in api.operation.parameters}}
56
56
,{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}}
57
57
{{end}}
58
58
)
59
59
{
60
- return operations.{{GetMethodName api.operation "Async"}}<T>(
60
+ return operations.{{GetOperationId api.operation "Async"}}<T>(
61
61
{{ for parameter in api.operation.parameters}}
62
62
{{GetDotNetNameOpenApiParameter parameter "false"}},
63
63
{{end}}
@@ -80,15 +80,15 @@ public static partial class {{name}}OperationsExtensions
80
80
/// <param name="cancellationToken">
81
81
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
82
82
/// </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"}}(
84
84
this I{{name}}Operations operations,
85
85
{{ for parameter in api.operation.parameters}}
86
86
{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}},
87
87
{{ end }}
88
88
CancellationToken cancellationToken = default(CancellationToken))
89
89
{
90
90
{{if IfReturnType api.operation "stream"}}
91
- var _result = await operations.{{GetMethodName api.operation "WithHttpMessagesAsync"}}(
91
+ var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}(
92
92
{{ for parameter in api.operation.parameters}}
93
93
{{GetDotNetNameOpenApiParameter parameter "false"}},
94
94
{{end}}
@@ -98,7 +98,7 @@ public static partial class {{name}}OperationsExtensions
98
98
{{GetReturnType api.operation "_result.Body"}};
99
99
{{end}}
100
100
{{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"}}(
102
102
{{ for parameter in api.operation.parameters}}
103
103
{{GetDotNetNameOpenApiParameter parameter "false"}},
104
104
{{end}}
@@ -109,7 +109,7 @@ public static partial class {{name}}OperationsExtensions
109
109
}
110
110
{{end}}
111
111
{{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"}}(
113
113
{{ for parameter in api.operation.parameters}}
114
114
{{GetDotNetNameOpenApiParameter parameter "false"}},
115
115
{{end}}
@@ -135,14 +135,14 @@ public static partial class {{name}}OperationsExtensions
135
135
/// <param name="cancellationToken">
136
136
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
137
137
/// </param>
138
- public static async Task<T> {{GetMethodName api.operation "Async"}}<T>(
138
+ public static async Task<T> {{GetOperationId api.operation "Async"}}<T>(
139
139
this I{{name}}Operations operations,
140
140
{{ for parameter in api.operation.parameters}}
141
141
{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}},
142
142
{{ end }}
143
143
CancellationToken cancellationToken = default(CancellationToken))
144
144
{
145
- using (var _result = await operations.{{GetMethodName api.operation "WithHttpMessagesAsync"}}<T>(
145
+ using (var _result = await operations.{{GetOperationId api.operation "WithHttpMessagesAsync"}}<T>(
146
146
{{ for parameter in api.operation.parameters}}
147
147
{{GetDotNetNameOpenApiParameter parameter "false"}},
148
148
{{end}}
0 commit comments