public static ProbeMatchesMessage11 Create(DiscoveryMessageSequence messageSequence, EndpointDiscoveryMetadata endpointDiscoveryMetadata) { return(new ProbeMatchesMessage11() { MessageSequence = DiscoveryMessageSequence11.FromDiscoveryMessageSequence(messageSequence), ProbeMatches = ProbeMatches11.Create(endpointDiscoveryMetadata) }); }
public static ProbeMatches11 Create(Collection <EndpointDiscoveryMetadata> endpointDiscoveryMetadatas) { ProbeMatches11 probeMatches = new ProbeMatches11(); if (endpointDiscoveryMetadatas != null) { foreach (EndpointDiscoveryMetadata endpointDiscoveryMetadata in endpointDiscoveryMetadatas) { probeMatches.Add(EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata(endpointDiscoveryMetadata)); } } ; return(probeMatches); }