public static ProbeMatchesMessageApril2005 Create(DiscoveryMessageSequence messageSequence, EndpointDiscoveryMetadata endpointDiscoveryMetadata)
 {
     return(new ProbeMatchesMessageApril2005()
     {
         MessageSequence = DiscoveryMessageSequenceApril2005.FromDiscoveryMessageSequence(messageSequence),
         ProbeMatches = ProbeMatchesApril2005.Create(endpointDiscoveryMetadata)
     });
 }
Exemple #2
0
        public static ProbeMatchesApril2005 Create(Collection <EndpointDiscoveryMetadata> endpointDiscoveryMetadatas)
        {
            ProbeMatchesApril2005 probeMatches = new ProbeMatchesApril2005();

            if (endpointDiscoveryMetadatas != null)
            {
                foreach (EndpointDiscoveryMetadata endpointDiscoveryMetadata in endpointDiscoveryMetadatas)
                {
                    probeMatches.Add(EndpointDiscoveryMetadataApril2005.FromEndpointDiscoveryMetadata(endpointDiscoveryMetadata));
                }
            }
            ;

            return(probeMatches);
        }