コード例 #1
0
        public IAsyncResult BeginGetRule(string name, AsyncCallback callback, object state)
        {
            var result = new GetEntityAsyncResult <RuleDescription>(this.topicPath + "/Subscriptions/" + this.name + "/Rules/" + name, this.TokenProvider);

            result.BeginInvoke(callback, state);

            return(result);
        }
コード例 #2
0
ファイル: QueueClient.cs プロジェクト: zhy29563/MyMEF
        public static IAsyncResult BeginGetQueue(string path, TokenProvider tokenProvider, AsyncCallback callback, object state)
        {
            var result = new GetEntityAsyncResult <QueueDescription>(path, tokenProvider);

            result.BeginInvoke(callback, state);

            return(result);
        }
コード例 #3
0
        public static IAsyncResult BeginGetSubscription(string topicPath, string name, TokenProvider tokenProvider, AsyncCallback callback, object state)
        {
            var result = new GetEntityAsyncResult <SubscriptionDescription>(topicPath + "/Subscriptions/" + name, tokenProvider)
            {
                TopicPath = topicPath
            };

            result.BeginInvoke(callback, state);

            return(result);
        }