public override SubscriptionInfo GetSubscriber(string topic, Common.Enum.SubscriptionType type, OperationContext context) { Topic instance = _topicManager.GetTopic(topic); if (instance != null) { return(instance.GetSubscriberForAssignment(type, context)); } return(null); }
public bool HasMessageSubscriptons(Common.Enum.SubscriptionType type) { if (type == Common.Enum.SubscriptionType.Publisher) { return(_deliverySubscriptions.Count > 0); } else { return(_messageSubscriptions.Count > 0); } }
public Subscribers(string id, Common.Enum.SubscriptionType type) { this.ID = id; this.Type = type; }