IAsyncResult IAnnouncementContractCD1.BeginOfflineAnnouncement (MessageContractsCD1.OfflineAnnouncement msg, AsyncCallback callback, object state) { var msq = msg.MessageSequence != null ? msg.MessageSequence.ToDiscoveryMessageSequence () : null; var edm = msg.EndpointDiscoveryMetadata != null ? msg.EndpointDiscoveryMetadata.ToEndpointDiscoveryMetadata () : null; return OnBeginOfflineAnnouncement (msq, edm, callback, state); }
IAsyncResult IDiscoveryTargetContractCD1.BeginReplyResolve (MessageContractsCD1.ResolveResponse message, AsyncCallback callback, object state) { // is it expected to be invoked?? throw new NotImplementedException (); }
IAsyncResult IDiscoveryTargetContractCD1.BeginOnlineAnnouncement (MessageContractsCD1.OnlineAnnouncement msg, AsyncCallback callback, object state) { var edm = msg.EndpointDiscoveryMetadata != null ? msg.EndpointDiscoveryMetadata.ToEndpointDiscoveryMetadata () : null; return OnBeginOnlineAnnouncement (DiscoveryMessageSequenceGenerator.Next (), edm, callback, state); }
IAsyncResult IDiscoveryTargetContractCD1.BeginResolve (MessageContractsCD1.ResolveRequest message, AsyncCallback callback, object state) { return OnBeginResolve (message.Body.ToResolveCriteria (), callback, state); }
// IDiscoveryTargetContractCD1 IAsyncResult IDiscoveryTargetContractCD1.BeginFind (MessageContractsCD1.FindRequest message, AsyncCallback callback, object state) { return OnBeginFind (new DefaultFindRequestContext (message.Body.ToFindCriteria ()), callback, state); }
IAsyncResult IDiscoveryTargetContractCD1.BeginOnlineAnnouncement (MessageContractsCD1.OnlineAnnouncement message, AsyncCallback callback, object state) { // is it expected to be invoked?? throw new NotImplementedException (); }
// IDiscoveryProxyContractCD1 IAsyncResult IDiscoveryProxyContractCD1.BeginFind (MessageContractsCD1.FindRequest message, AsyncCallback callback, object state) { if (find_context != null) throw new InvalidOperationException ("Another async Find operation is ongoing"); find_context = new DefaultFindRequestContext (message.Body.ToFindCriteria ()); return OnBeginFind (find_context, callback, state); }
IAsyncResult IAnnouncementContractCD1.BeginOnlineAnnouncement (MessageContractsCD1.OnlineAnnouncement msg, AsyncCallback callback, object state) { return OnBeginOnlineAnnouncement (msg.MessageSequence.ToDiscoveryMessageSequence (), msg.EndpointDiscoveryMetadata.ToEndpointDiscoveryMetadata (), callback, state); }