public static void Initialize(ExpertWatchPackage package) { OleMenuCommandService commandService = package.GetService(typeof(IMenuCommandService)) as OleMenuCommandService; Instance = new ExpertWatchCommand(package, commandService); }
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); ExpertWatchCommand.Initialize(this); }