private MethodInfo ConsumeMethod(AutoSubscriberConsumerInfo consumerInfo) { return(consumerInfo.ConcreteType.GetMethod(ConsumeMethodName, new[] { consumerInfo.MessageType }) ?? this.GetExplicitlyDeclaredInterfaceMethod(consumerInfo.MessageType)); }
protected virtual ReceiveAndDeleteAttribute GetReadAndDeleteAttribute(AutoSubscriberConsumerInfo subscriptionInfo) { var consumeMethod = this.ConsumeMethod(subscriptionInfo); return(consumeMethod.GetCustomAttributes(typeof(ReceiveAndDeleteAttribute), true).SingleOrDefault() as ReceiveAndDeleteAttribute); }
protected virtual SubscriptionAttribute GetSubscriptionAttribute(AutoSubscriberConsumerInfo subscriptionInfo) { var consumeMethod = this.ConsumeMethod(subscriptionInfo); return(consumeMethod.GetCustomAttributes(typeof(SubscriptionAttribute), true).SingleOrDefault() as SubscriptionAttribute); }
private MethodInfo ConsumeMethod(AutoSubscriberConsumerInfo consumerInfo) { return consumerInfo.ConcreteType.GetMethod(ConsumeMethodName, new[] { consumerInfo.MessageType }) ?? this.GetExplicitlyDeclaredInterfaceMethod(consumerInfo.MessageType); }
protected virtual SubscriptionAttribute GetSubscriptionAttribute(AutoSubscriberConsumerInfo subscriptionInfo) { var consumeMethod = this.ConsumeMethod(subscriptionInfo); return consumeMethod.GetCustomAttributes(typeof(SubscriptionAttribute), true).SingleOrDefault() as SubscriptionAttribute; }
protected virtual ReceiveAndDeleteAttribute GetReadAndDeleteAttribute(AutoSubscriberConsumerInfo subscriptionInfo) { var consumeMethod = this.ConsumeMethod(subscriptionInfo); return consumeMethod.GetCustomAttributes(typeof(ReceiveAndDeleteAttribute), true).SingleOrDefault() as ReceiveAndDeleteAttribute; }