コード例 #1
0
        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"));
        }
コード例 #2
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            var ignore = server.ActivateAsync();

            ignore = client.ActivateAsync();
        }