Exemple #1
0
        public void Subscribe(IList <Subscription> subscriptionList)
        {
            foreach (var subscription in subscriptionList)
            {
                var uri         = subscription.SubscriptionString;
                var fieldsParam = HttpUtility.ParseQueryString(uri.Split('?')[1]).Get("fields");
                var fields      = fieldsParam.Split(',').ToList();

                Subscriptions.Add(subscription.CorrelationID, subscription);
                SubscriptionFields.Add(subscription.CorrelationID, fields);
            }
            Session.Subscribe(subscriptionList);
        }
Exemple #2
0
 internal SubscriptionField(SubscriptionFields subscriptionFields, string name)
 {
     this.subscriptionFields = subscriptionFields;
     this.name = name;
 }
Exemple #3
0
 internal SubscriptionField(SubscriptionFields subscriptionFields)
 {
     this.subscriptionFields = subscriptionFields;
 }