Beispiel #1
0
        public static MessagePath <TMessage> AddMessagePath(IMessagePathHub hub, Type location, string description, LogEnum logType, Action <TMessage> action, PathId pathId, int viaTimesLimit = -1)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }
            MessagePath <TMessage> path = new MessagePath <TMessage>(location, description, logType, action, pathId, viaTimesLimit);

            hub.AddPath(path);
            return(path);
        }
 protected AbstractTimingEventProducer(IMessagePathHub hub)
 {
     _hub = hub;
 }
Beispiel #3
0
 public DefaultTimingEventProducer(IMessagePathHub hub) : base(hub)
 {
 }