Esempio n. 1
0
 protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
 {
     if (await GetServiceAsync(typeof(IMenuCommandService)).ConfigureAwait(false) is OleMenuCommandService commandService)
     {
         InstallLibraryCommand.Initialize(this, commandService);
         CleanCommand.Initialize(this, commandService);
         RestoreCommand.Initialize(this, commandService);
         RestoreSolutionCommand.Initialize(this, commandService);
         RestoreOnBuildCommand.Initialize(this, commandService);
         ManageLibrariesCommand.Initialize(this, commandService);
     }
 }
Esempio n. 2
0
 public static void Initialize(Package package, OleMenuCommandService commandService)
 {
     Instance = new RestoreOnBuildCommand(package, commandService);
 }