Skip to content

Commit e23698e

Browse files
Don't attempt to generate protocol methods for nowait versions
1 parent b82e561 commit e23698e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/client/Apigen/src/apigen/Apigen.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,8 @@ public void MaybeEmitModelMethod(MethodInfo method) {
832832
if (method.IsSpecialName) {
833833
// It's some kind of event- or property-related method.
834834
// It shouldn't be autogenerated.
835+
} else if (method.Name.EndsWith("Nowait")) {
836+
// Skip *Nowait versions
835837
} else if (Attribute(method, typeof(AmqpMethodDoNotImplementAttribute)) != null) {
836838
// Skip this method, by request (AmqpMethodDoNotImplement)
837839
} else if (Attribute(method, typeof(AmqpContentHeaderFactoryAttribute)) != null) {

0 commit comments

Comments
 (0)