public static async Task RespondPackageBaseAddressAsync( this INugetServerProvider provider, HttpContext context) { var req = provider .GetRequstingPackageBaseAddressModel( context); if (!req.IsValid()) { provider.RespondNotFound(context); return; } if (req.IsRequestingVersions()) { await provider.RespondVersionsAsync(context, req); return; } if (req.IsRequestingNuspec()) { await provider.RespondNuspecAsync(context, req); return; } if (req.IsRequestingNupkg()) { await provider.RespondNupkgAsync(context, req); return; } provider.RespondNotFound(context); }