protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); Logger.Initialize(this, "Nuspec Generator"); await GenerateNuspecCommand.InitializeAsync(this); }
public static async Task InitializeAsync(AsyncPackage package) { var dte2 = await package.GetServiceAsync(typeof(DTE)) as DTE2; var commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; Instance = new GenerateNuspecCommand(commandService, dte2); }