Example #1
0
        bool SendProxyAnnouncements(Collection <EndpointDiscoveryMetadata> redirectionEndpoints)
        {
            if ((redirectionEndpoints == null) || (redirectionEndpoints.Count == 0))
            {
                return(true);
            }

            IAsyncResult result = new ProxyAnnouncementsSendAsyncResult(
                this,
                redirectionEndpoints,
                this.PrepareAsyncCompletion(onSendProxyAnnouncementsCompletedCallback),
                this);

            return(result.CompletedSynchronously && OnSendProxyAnnouncementsCompleted(result));
        }
Example #2
0
 static bool OnSendProxyAnnouncementsCompleted(IAsyncResult result)
 {
     ProxyAnnouncementsSendAsyncResult.End(result);
     return(true);
 }