public static async Task<PredefinedNetworkService[]> LoadPredefinedNetworkServicesAsync() { var disabledServices = await ReadDisabledServicesAsync(); var services = NetworkServiceRegistry.Entries.Select(x => { var isEnabled = disabledServices == null || !disabledServices.Guids.Contains(x.Guid); var service = new PredefinedNetworkService(x, isEnabled); return service; }); var result = services.ToArray(); return result; }
public static async Task <PredefinedNetworkService[]> LoadPredefinedNetworkServicesAsync() { var disabledServices = await ReadDisabledServicesAsync(); var services = NetworkServiceRegistry.Entries.Select(x => { var isEnabled = disabledServices == null || !disabledServices.Guids.Contains(x.Guid); var service = new PredefinedNetworkService(x, isEnabled); return(service); }); var result = services.ToArray(); return(result); }