3 using System.Collections.Immutable;
11 private readonly ImmutableArray<ServerProvider> providers;
15 this.providers = providers.ToImmutableArray();
18 protected override void RetrieveServersImpl(Action<ServerInfo, ServerProvider> onServerDataReceived, Action onQueryCompleted)
20 int providersFinished = 0;
21 void ackFinishedProvider()
24 if (providersFinished == providers.Length)
29 providers.ForEach(p => p.RetrieveServers(onServerDataReceived, ackFinishedProvider));
33 => providers.ForEach(p => p.Cancel());
CompositeServerProvider(params ServerProvider[] providers)
override void RetrieveServersImpl(Action< ServerInfo, ServerProvider > onServerDataReceived, Action onQueryCompleted)