示例#1
0
 private MethodInfo ConsumeMethod(AutoSubscriberConsumerInfo consumerInfo)
 {
     return(consumerInfo.ConcreteType.GetMethod(ConsumeMethodName, new[] { consumerInfo.MessageType }) ??
            this.GetExplicitlyDeclaredInterfaceMethod(consumerInfo.MessageType));
 }
示例#2
0
        protected virtual ReceiveAndDeleteAttribute GetReadAndDeleteAttribute(AutoSubscriberConsumerInfo subscriptionInfo)
        {
            var consumeMethod = this.ConsumeMethod(subscriptionInfo);

            return(consumeMethod.GetCustomAttributes(typeof(ReceiveAndDeleteAttribute), true).SingleOrDefault() as ReceiveAndDeleteAttribute);
        }
示例#3
0
        protected virtual SubscriptionAttribute GetSubscriptionAttribute(AutoSubscriberConsumerInfo subscriptionInfo)
        {
            var consumeMethod = this.ConsumeMethod(subscriptionInfo);

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