public static HelloMessage11 Create(DiscoveryMessageSequence messageSequence, EndpointDiscoveryMetadata endpointDiscoveryMetadata)
 {
     return(new HelloMessage11()
     {
         MessageSequence = DiscoveryMessageSequence11.FromDiscoveryMessageSequence(messageSequence),
         Hello = EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata(endpointDiscoveryMetadata)
     });
 }
        public IAsyncResult BeginAnnounceOffline(EndpointDiscoveryMetadata metadata, DiscoveryMessageSequence sequence, AsyncCallback callback, object state)
        {
            var md  = new EndpointDiscoveryMetadata11(metadata);
            var seq = new DiscoveryMessageSequence11(sequence);
            var msg = new MessageContracts11.OfflineAnnouncement()
            {
                EndpointDiscoveryMetadata = md, MessageSequence = seq
            };

            return(Channel.BeginOfflineAnnouncement(msg, callback, state));
        }
Beispiel #3
0
        public static ResolveMatches11 Create(EndpointDiscoveryMetadata endpointDiscoveryMetadata)
        {
            ResolveMatches11 resolveMatches = new ResolveMatches11();

            if (endpointDiscoveryMetadata != null)
            {
                resolveMatches.ResolveMatch =
                    EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata(endpointDiscoveryMetadata);
            }

            return(resolveMatches);
        }