Example #1
0
        internal ByeOperationAsyncResult(
            IAnnouncementServiceImplementation announcementServiceImpl,
            TMessage message,
            AsyncCallback callback,
            object state)
            : base(callback, state)
        {
            this.announcementServiceImpl = announcementServiceImpl;

            if (this.IsInvalid(message))
            {
                this.Complete(true);
                return;
            }

            IAsyncResult innerAsyncResult =
                this.announcementServiceImpl.OnBeginOfflineAnnouncement(
                    this.GetMessageSequence(message),
                    this.GetEndpointDiscoveryMetadata(message),
                    this.PrepareAsyncCompletion(onOnOfflineAnnoucementCompletedCallback),
                    this);

            if (innerAsyncResult.CompletedSynchronously && OnOnOfflineAnnouncementCompleted(innerAsyncResult))
            {
                this.Complete(true);
                return;
            }
        }
Example #2
0
 public ByeOperationCD1AsyncResult(
     IAnnouncementServiceImplementation announcementServiceImpl,
     ByeMessageCD1 message,
     AsyncCallback callback,
     object state)
     : base(announcementServiceImpl, message, callback, state)
 {
 }
 public HelloOperation11AsyncResult(
     IAnnouncementServiceImplementation announcementServiceImpl,
     HelloMessage11 message,
     AsyncCallback callback,
     object state)
     : base(announcementServiceImpl, message, callback, state)
 {
 }