예제 #1
0
 public UnsubscribeAction SubscribeConsumer <T>(Func <T, Action <T> > getConsumerAction)
     where T : class
 {
     return(InboundPipeline.Subscribe <T>(getConsumerAction));
 }
예제 #2
0
        public UnsubscribeAction Subscribe <T>(T consumer) where T : class
        {
            UnsubscribeAction result = InboundPipeline.Subscribe(consumer);

            return(result);
        }
예제 #3
0
        public UnsubscribeAction Subscribe <TComponent>() where TComponent : class
        {
            UnsubscribeAction result = InboundPipeline.Subscribe <TComponent>();

            return(result);
        }
예제 #4
0
        /// <summary>
        /// Adds a message handler to the service bus for handling a specific type of message
        /// </summary>
        /// <typeparam name="T">The message type to handle, often inferred from the callback specified</typeparam>
        /// <param name="callback">The callback to invoke when messages of the specified type arrive on the service bus</param>
        /// <param name="condition">A condition predicate to filter which messages are handled by the callback</param>
        public UnsubscribeAction Subscribe <T>(Action <T> callback, Predicate <T> condition) where T : class
        {
            UnsubscribeAction result = InboundPipeline.Subscribe(callback, condition);

            return(result);
        }