private void SendTelemetryWizardComplete(WizardTypeEnum wizardType, WizardActionEnum wizardAction) { AppHealth.Current.Telemetry.TrackWizardCompletedAsync( wizardType, wizardAction, GenContext.ToolBox.Shell.GetVsVersion()) .FireAndForget(); }
public async Task TrackWizardCompletedAsync(WizardTypeEnum wizardType, WizardActionEnum wizardAction) { var properties = new Dictionary <string, string>() { { TelemetryProperties.WizardStatus, WizardStatusEnum.Completed.ToString() }, { TelemetryProperties.WizardType, wizardType.ToString() }, { TelemetryProperties.WizardAction, wizardAction.ToString() }, { TelemetryProperties.EventName, TelemetryEvents.Wizard } }; await TelemetryService.Current.TrackEventAsync(TelemetryEvents.Wizard, properties).ConfigureAwait(false); }