public static ProbeMatchesMessageApril2005 Create(DiscoveryMessageSequence messageSequence, EndpointDiscoveryMetadata endpointDiscoveryMetadata) { return(new ProbeMatchesMessageApril2005() { MessageSequence = DiscoveryMessageSequenceApril2005.FromDiscoveryMessageSequence(messageSequence), ProbeMatches = ProbeMatchesApril2005.Create(endpointDiscoveryMetadata) }); }
public static HelloMessageApril2005 Create(DiscoveryMessageSequence messageSequence, EndpointDiscoveryMetadata endpointDiscoveryMetadata) { return(new HelloMessageApril2005() { MessageSequence = DiscoveryMessageSequenceApril2005.FromDiscoveryMessageSequence(messageSequence), Hello = EndpointDiscoveryMetadataApril2005.FromEndpointDiscoveryMetadata(endpointDiscoveryMetadata) }); }
internal static ByeMessageApril2005 Create(DiscoveryMessageSequence messageSequence, EndpointDiscoveryMetadata endpointDiscoveryMetadata) { return(new ByeMessageApril2005() { MessageSequence = DiscoveryMessageSequenceApril2005.FromDiscoveryMessageSequence(messageSequence), Bye = EndpointDiscoveryMetadataApril2005.FromEndpointDiscoveryMetadata(endpointDiscoveryMetadata) }); }
public static DiscoveryMessageSequence ToDiscoveryMessageSequenceOrNull(DiscoveryMessageSequenceApril2005 messageSequence) { if (messageSequence == null) { return null; } else { return messageSequence.ToDiscoveryMessageSequence(); } }
public IAsyncResult BeginAnnounceOffline(EndpointDiscoveryMetadata metadata, DiscoveryMessageSequence sequence, AsyncCallback callback, object state) { var md = new EndpointDiscoveryMetadataApril2005(metadata); var seq = new DiscoveryMessageSequenceApril2005(sequence); var msg = new MessageContractsApril2005.OfflineAnnouncement() { EndpointDiscoveryMetadata = md, MessageSequence = seq }; return(Channel.BeginOfflineAnnouncement(msg, callback, state)); }