diff --git a/tools/Environments/DevHome.Environments/ViewModels/ComputeSystemViewModel.cs b/tools/Environments/DevHome.Environments/ViewModels/ComputeSystemViewModel.cs index 59a4c95877..2ba1f1975b 100644 --- a/tools/Environments/DevHome.Environments/ViewModels/ComputeSystemViewModel.cs +++ b/tools/Environments/DevHome.Environments/ViewModels/ComputeSystemViewModel.cs @@ -138,7 +138,9 @@ private async Task InitializeOperationDataAsync() ShouldShowDotOperations = false; ShouldShowSplitButton = false; - RegisterForAllOperationMessages(DataExtractor.FillDotButtonOperations(ComputeSystem, _mainWindow), DataExtractor.FillLaunchButtonOperations(_provider, ComputeSystem, _configurationAction)); + RegisterForAllOperationMessages( + DataExtractor.FillDotButtonOperations(ComputeSystem, _mainWindow), + DataExtractor.FillLaunchButtonOperations(_provider, ComputeSystem, _configurationAction)); _ = Task.Run(async () => { @@ -319,25 +321,25 @@ public void Receive(ComputeSystemOperationStartedMessage message) { _mainWindow.DispatcherQueue.TryEnqueue(() => { - var data = message.Value; - IsOperationInProgress = true; - ShouldShowLaunchOperation = false; - var providerId = ComputeSystem.AssociatedProviderId.Value; - - _log.Information($"operation '{data.ComputeSystemOperation}' starting for Compute System: {Name}"); - - var telemetryPayload = new EnvironmentOperationEvent( - EnvironmentsTelemetryStatus.Started, - data.ComputeSystemOperation, - providerId, - new TelemetryResult(), - data.AdditionalContext); - - TelemetryFactory.Get().Log( - "Environment_OperationInvoked_Event", - LogLevel.Critical, - telemetryPayload, - relatedActivityId: message.Value.ActivityId); + var data = message.Value; + IsOperationInProgress = true; + ShouldShowLaunchOperation = false; + var providerId = ComputeSystem.AssociatedProviderId.Value; + + _log.Information($"operation '{data.ComputeSystemOperation}' starting for Compute System: {Name}"); + + var telemetryPayload = new EnvironmentOperationEvent( + EnvironmentsTelemetryStatus.Started, + data.ComputeSystemOperation, + providerId, + new TelemetryResult(), + data.AdditionalContext); + + TelemetryFactory.Get().Log( + "Environment_OperationInvoked_Event", + LogLevel.Critical, + telemetryPayload, + relatedActivityId: message.Value.ActivityId); }); }