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); }
public RegexTopicSubscription(MsgBroker broker, object subscriber, Regex regex, Type type, Delegate action) : base(broker, subscriber, type, action) { Regex = regex; }
public NamedTopicSubscription(MsgBroker broker, object subscriber, string name, Type type, Delegate action) : base(broker, subscriber, type, action) { Name = name; }