29 references to PackageFeedStatus
Microsoft.DotNet.Build.Tasks.Feed (19)
src\common\AzureStorageUtils.cs (9)
207public static async Task<PackageFeedStatus> CompareLocalPackageToFeedPackage( 239public static async Task<PackageFeedStatus> CompareLocalPackageToFeedPackage( 248PackageFeedStatus result = PackageFeedStatus.Unknown; 266result = PackageFeedStatus.ExistsAndDifferent; 278result = PackageFeedStatus.ExistsAndDifferent; 287result = streamsMatch ? PackageFeedStatus.ExistsAndIdenticalToLocal : PackageFeedStatus.ExistsAndDifferent; 297result = PackageFeedStatus.DoesNotExist;
src\PublishArtifactsInManifestBase.cs (10)
1372Func<string, string, HttpClient, MsBuildUtils.TaskLoggingHelper, Task<PackageFeedStatus>> CompareLocalPackageToFeedPackageCallBack = null, 1380var packageStatus = PackageFeedStatus.Unknown; 1396packageStatus = PackageFeedStatus.ExistsAndIdenticalToLocal; 1407case PackageFeedStatus.ExistsAndIdenticalToLocal: 1412case PackageFeedStatus.ExistsAndDifferent: 1426while (packageStatus != PackageFeedStatus.ExistsAndIdenticalToLocal && // Success 1427packageStatus != PackageFeedStatus.ExistsAndDifferent && // Give up: Non-retriable error 1430if (packageStatus != PackageFeedStatus.ExistsAndIdenticalToLocal) 1444if (packageStatus != PackageFeedStatus.ExistsAndIdenticalToLocal && nugetResult?.ExitCode != 0)
Microsoft.DotNet.Build.Tasks.Feed.Tests (10)
GeneralTests.cs (6)
104[InlineData("", HttpStatusCode.NotFound, PackageFeedStatus.DoesNotExist)] 105[InlineData("test-package-b", HttpStatusCode.OK, PackageFeedStatus.ExistsAndDifferent)] 106[InlineData("test-package-a", HttpStatusCode.OK, PackageFeedStatus.ExistsAndIdenticalToLocal)] 107[InlineData("", HttpStatusCode.InternalServerError, PackageFeedStatus.Unknown)] 111PackageFeedStatus expectedResult) 127var result = await CompareLocalPackageToFeedPackage(
PublishArtifactsInManifestTests.cs (4)
106Func<string, string, HttpClient, MsBuildUtils.TaskLoggingHelper, Task<PackageFeedStatus>> testCompareLocalPackage = async (string localPackageFullPath, string packageContentUrl, HttpClient client, MsBuildUtils.TaskLoggingHelper log) => 112return localPackageMatchesFeed ? PackageFeedStatus.ExistsAndIdenticalToLocal : PackageFeedStatus.ExistsAndDifferent; 116return PackageFeedStatus.DoesNotExist;