public int DebugLaunch(uint grfLaunch) { if (_snapshotDebugConfigManager != null) { SnapshotDebugConfig config = _snapshotDebugConfigManager.GetConfiguration(_projectGuid); if (config == null) { config = _snapshotDebugConfigManager.CreateNewConfiguration(_projectGuid); } if (config != null) { IProductionDebuggerInternal debugger = ServiceProvider.GlobalProvider.GetService(typeof(SVsShellDebugger)) as IProductionDebuggerInternal; Task.Run(async() => { string token = await config.GetBearerToken(); if (!string.IsNullOrEmpty(token)) { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); debugger?.LaunchProductionDebugWithAzureTools2(config.ResourceId, config.WebsiteName, token); } }); } } return(VSConstants.S_OK); }
private void Hyperlink_Click(object sender, RoutedEventArgs e) { _snapshotDebugConfigManager?.CreateNewConfiguration(_projectGuid); }