18 writes to Channel
aspire (1)
Commands\UpdateCommand.cs (1)
494Channel = channel,
Aspire.Cli.Tests (17)
Projects\GuestAppHostProjectTests.cs (12)
1154Channel = implicitChannel, 1260Channel = channel, 1323Channel = CreateGuestUpdateChannel("2.0.0", explicitChannel: true), 1371Channel = CreateGuestUpdateChannel(projectUpdate ? "2.0.0" : "1.0.0", explicitChannel: true), 1422Channel = CreateGuestUpdateChannel("1.0.0", explicitChannel: false), 1675Channel = stableChannel, 1734Channel = stagingChannel, 1794Channel = stableChannel, 1850Channel = stableChannel, 1899Channel = stableChannel, 2412Channel = implicitChannel, 2502Channel = implicitChannel,
Projects\ProjectUpdaterNuGetConfigurationTests.cs (4)
1165Channel = channel, 1277Channel = channel, 1451Channel = channel, 2069Channel = channel,
Projects\ProjectUpdaterTests.cs (1)
2140Channel = channel,
27 references to Channel
aspire (13)
Projects\GuestAppHostProject.cs (8)
1884var latestSdkPackage = await context.Channel.GetLatestGuestAppHostSdkPackageAsync(directory, cancellationToken); 1912var packages = await context.Channel.GetPackagesAsync(packageId, directory, cancellationToken); 1934var explicitChannelName = context.Channel.ShouldPersistChannelName() ? context.Channel.Name : null; 1937(context.Channel.Type is PackageChannelType.Explicit && 1938string.Equals(context.Channel.Name, PackageChannelNames.Stable, StringComparisons.ChannelName) && 2007var requestedChannel = context.Channel.Type is PackageChannelType.Explicit 2008? context.Channel.Name
Projects\ProjectUpdater.cs (5)
37var channel = context.Channel; 444if (!context.HasExplicitChannel || context.Channel.Type != PackageChannelType.Explicit) 465context.Channel.Name, 482context.Channel.ShouldCreateNuGetConfig(), 483context.Channel.ConfigureGlobalPackagesFolder ? CliPathHelper.StagingNuGetPackagesFolderName : null,
Aspire.Cli.Tests (14)
Commands\UpdateCommandTests.cs (13)
1742capturedChannel = context.Channel; 1807capturedChannel = context.Channel; 1929capturedChannel = context.Channel; 2055updatedWithChannel = context.Channel.Name; 2685updatedWithChannel = context.Channel.Name; 2741updatedWithChannel = context.Channel.Name; 2905Assert.Equal(expectedChannel, context.Channel.Name); 2980Assert.Equal(selectedChannel, context.Channel.Name); 3006Assert.Equal("default", context.Channel.Name); 3045Assert.Equal("staging", context.Channel.Name); 3075? [string.Format(UpdateCommandStrings.UsingConfiguredChannelFormat, context.Channel.Name)] 3133return (exitCode, context?.Channel.Name ?? string.Empty, promptInvoked); 3485capturedChannel = context.Channel;
Projects\ProjectUpdaterNuGetConfigurationTests.cs (1)
1752UpdateCommandStrings.FailedToRestoreAfterUpdateFormat, context.Channel.Name, projectFile.FullName), exception.Message);