Esempio n. 1
0
        private async Task FindPackagesById(InterceptCallContext context)
        {
            context.Log("[V3 CALL] FindPackagesById", ConsoleColor.Green);

            if (context.Args.Id == null)
            {
                throw new ShimException("unable to find id in query string");
            }

            if (context.Args.IsLatestVersion)
            {
                await _channel.GetLatestVersionPackage(context, context.Args.Id, context.Args.IncludePrerelease);
            }
            else
            {
                await _channel.GetAllPackageVersions(context, context.Args.Id);
            }
        }