private async void Page_Loaded(object sender, RoutedEventArgs e) { await server.ActivateAsync(); await server.ListenAllConnectedAsync(); AdapterProfiles = new ObservableCollection <AdapterProfile>( await AdapterProfile.GetListOfAdaptersAsync()); AdapterProfiles.Add(new AdapterProfile(new HostName("127.0.0.1"), "Loopback Connection")); }
private void Page_Loaded(object sender, RoutedEventArgs e) { var ignore = server.ActivateAsync(); ignore = client.ActivateAsync(); }