Example #1
0
            public Subscription(MsgBroker broker, object subscriber, Type type, Delegate action)
            {
                _broker     = broker;
                _subscriber = subscriber != null ? new WeakReference(subscriber) : null;
                _type       = type;
                _action     = action;

                _hasParameter = (action.GetMethodInfo().GetParameters().Length == 1);
            }
Example #2
0
 public RegexTopicSubscription(MsgBroker broker, object subscriber, Regex regex, Type type, Delegate action) : base(broker, subscriber, type, action)
 {
     Regex = regex;
 }
Example #3
0
 public NamedTopicSubscription(MsgBroker broker, object subscriber, string name, Type type, Delegate action) : base(broker, subscriber, type, action)
 {
     Name = name;
 }