private async Task OnInstallAsync(IExtensibleProject project, PackageIdentity package, bool result) { var args = new InstallNuGetProjectEventArgs(project, package, result); if (_batchToken is not null && !_batchToken.IsDisposed) { _batchToken.Add(new BatchedInstallNuGetProjectEventArgs(args)); return; } if (_updateToken is not null && !_updateToken.IsDisposed) { _updateToken.Add(args); return; } await Install.SafeInvokeAsync(this, args); }
public BatchedInstallNuGetProjectEventArgs(InstallNuGetProjectEventArgs eventArgs) : base(eventArgs.Project, eventArgs.Package, eventArgs.Result) { }