Loading Samples/SampleDeviceCollection/ViewModels/DevicePortalViewModel.cs +7 −7 Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ namespace SampleDeviceCollection this.Ready = false; try { IpConfiguration config = await this.Portal.GetIpConfig(); IpConfiguration config = await this.Portal.GetIpConfigAsync(); this.OutputIpConfiguration(config); } catch (Exception exn) Loading Loading @@ -342,7 +342,7 @@ namespace SampleDeviceCollection string newName = this.deviceNameEntry; this.DeviceNameEntry = string.Empty; this.OutputDiagnosticString("Attempting to rename device to {0}\n", newName); await this.Portal.SetDeviceName(newName); await this.Portal.SetDeviceNameAsync(newName); } catch (Exception exn) { Loading Loading @@ -398,7 +398,7 @@ namespace SampleDeviceCollection this.Ready = false; try { this.DeviceName = await this.Portal.GetDeviceName(); this.DeviceName = await this.Portal.GetDeviceNameAsync(); this.OutputDiagnosticString("Done refreshing device name\n"); } catch (Exception exn) Loading Loading @@ -459,7 +459,7 @@ namespace SampleDeviceCollection try { this.OutputDiagnosticString("Attempting to reboot device.\n"); await this.Portal.Reboot(); await this.Portal.RebootAsync(); // Sometimes able to reestablish the connection prematurely before the console has a chance to shut down // So adding a delay here before trying to reestablish the connection. Loading Loading @@ -571,7 +571,7 @@ namespace SampleDeviceCollection { do { await this.Portal.Connect(); await this.Portal.ConnectAsync(); if (this.Portal.ConnectionHttpStatusCode == HttpStatusCode.Unauthorized) { Loading Loading @@ -654,7 +654,7 @@ namespace SampleDeviceCollection try { this.Portal.SystemPerfMessageReceived += this.OnSystemPerfReceived; await this.Portal.StartListeningForSystemPerf(); await this.Portal.StartListeningForSystemPerfAsync(); } catch (Exception exn) { Loading Loading @@ -710,7 +710,7 @@ namespace SampleDeviceCollection try { this.Portal.SystemPerfMessageReceived -= this.OnSystemPerfReceived; await this.Portal.StopListeningForSystemPerf(); await this.Portal.StopListeningForSystemPerfAsync(); } catch (Exception exn) { Loading Loading
Samples/SampleDeviceCollection/ViewModels/DevicePortalViewModel.cs +7 −7 Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ namespace SampleDeviceCollection this.Ready = false; try { IpConfiguration config = await this.Portal.GetIpConfig(); IpConfiguration config = await this.Portal.GetIpConfigAsync(); this.OutputIpConfiguration(config); } catch (Exception exn) Loading Loading @@ -342,7 +342,7 @@ namespace SampleDeviceCollection string newName = this.deviceNameEntry; this.DeviceNameEntry = string.Empty; this.OutputDiagnosticString("Attempting to rename device to {0}\n", newName); await this.Portal.SetDeviceName(newName); await this.Portal.SetDeviceNameAsync(newName); } catch (Exception exn) { Loading Loading @@ -398,7 +398,7 @@ namespace SampleDeviceCollection this.Ready = false; try { this.DeviceName = await this.Portal.GetDeviceName(); this.DeviceName = await this.Portal.GetDeviceNameAsync(); this.OutputDiagnosticString("Done refreshing device name\n"); } catch (Exception exn) Loading Loading @@ -459,7 +459,7 @@ namespace SampleDeviceCollection try { this.OutputDiagnosticString("Attempting to reboot device.\n"); await this.Portal.Reboot(); await this.Portal.RebootAsync(); // Sometimes able to reestablish the connection prematurely before the console has a chance to shut down // So adding a delay here before trying to reestablish the connection. Loading Loading @@ -571,7 +571,7 @@ namespace SampleDeviceCollection { do { await this.Portal.Connect(); await this.Portal.ConnectAsync(); if (this.Portal.ConnectionHttpStatusCode == HttpStatusCode.Unauthorized) { Loading Loading @@ -654,7 +654,7 @@ namespace SampleDeviceCollection try { this.Portal.SystemPerfMessageReceived += this.OnSystemPerfReceived; await this.Portal.StartListeningForSystemPerf(); await this.Portal.StartListeningForSystemPerfAsync(); } catch (Exception exn) { Loading Loading @@ -710,7 +710,7 @@ namespace SampleDeviceCollection try { this.Portal.SystemPerfMessageReceived -= this.OnSystemPerfReceived; await this.Portal.StopListeningForSystemPerf(); await this.Portal.StopListeningForSystemPerfAsync(); } catch (Exception exn) { Loading