protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { var commandService = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService; await JoinableTaskFactory.SwitchToMainThreadAsync(); Options = (Options)GetDialogPage(typeof(Options)); EnableSyncCommand.Initialize(this, commandService); }
protected override void Initialize() { Options = (Options)GetDialogPage(typeof(Options)); Logger.Initialize(this, Vsix.Name); Telemetry.Initialize(this, Vsix.Version, "5f7a8b5c-b600-46df-9014-b4cadd33d146"); EnableSyncCommand.Initialize(this); base.Initialize(); }
public static void Initialize(Package package, OleMenuCommandService commandService) { Instance = new EnableSyncCommand(package, commandService); }
public static void Initialize(Package package) { Instance = new EnableSyncCommand(package); }