示例#1
0
        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);
        }
示例#2
0
 public BatchedInstallNuGetProjectEventArgs(InstallNuGetProjectEventArgs eventArgs) : base(eventArgs.Project, eventArgs.Package, eventArgs.Result)
 {
 }