Example #1
0
        public IAsyncResult BeginAddRule(string name, RuleDescription description, AsyncCallback callback, object state)
        {
            var result = new CreateEntityAsyncResult <RuleDescription>(this.topicPath + "/Subscriptions/" + this.name + "/Rules/" + name, description, this.TokenProvider);

            result.BeginInvoke(callback, state);

            return(result);
        }
Example #2
0
        public static IAsyncResult BeginCreateQueue(string path, QueueDescription description, TokenProvider tokenProvider, AsyncCallback callback, object state)
        {
            var result = new CreateEntityAsyncResult <QueueDescription>(path, description, tokenProvider);

            result.BeginInvoke(callback, state);

            return(result);
        }
Example #3
0
        public static IAsyncResult BeginCreateSubscription(string topicPath, string name, SubscriptionDescription description, TokenProvider tokenProvider, AsyncCallback callback, object state)
        {
            if (description == null)
            {
                throw new ArgumentNullException("description");
            }

            description.TopicPath = topicPath;
            description.Name      = name;

            var result = new CreateEntityAsyncResult <SubscriptionDescription>(topicPath + "/Subscriptions/" + name, description, tokenProvider);

            result.BeginInvoke(callback, state);

            return(result);
        }