예제 #1
0
        protected override bool TriggerAction(IList <IPackageVersion> versions)
        {
            var canDownload = m_PackageDatabase.Download(versions.Select(v => v.package));

            if (canDownload)
            {
                PackageManagerWindowAnalytics.SendEvent("startDownloadNew", packageIds: versions.Select(v => v.packageUniqueId));
            }
            return(canDownload);
        }
예제 #2
0
        protected override bool TriggerAction(IPackageVersion version)
        {
            var canDownload = m_PackageDatabase.Download(version.package);

            if (canDownload)
            {
                PackageManagerWindowAnalytics.SendEvent("startDownloadDowngrade", version.packageUniqueId);
            }
            return(canDownload);
        }