/// <summary> /// Initializes the singleton instance of the <see cref="SarifViewerOption"/> class. /// </summary> /// <param name="package">Owner package, not null.</param> /// <returns>A <see cref="System.Threading.Tasks.Task"/> representing the asynchronous operation.</returns> public static async System.Threading.Tasks.Task InitializeAsync(AsyncPackage package) { // Switch to the main thread await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken); Instance = new SarifViewerOption(package); }
public static void InitializeForUnitTests() { Instance = new SarifViewerOption(); }