18 writes to Channel
aspire (1)
Commands\UpdateCommand.cs (1)
451Channel = 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, 2409Channel = implicitChannel, 2499Channel = implicitChannel,
Projects\ProjectUpdaterNuGetConfigurationTests.cs (4)
998Channel = channel, 1110Channel = channel, 1283Channel = channel, 1772Channel = channel,
Projects\ProjectUpdaterTests.cs (1)
2136Channel = channel,
24 references to Channel
aspire (13)
Projects\GuestAppHostProject.cs (8)
1880var latestSdkPackage = await context.Channel.GetLatestGuestAppHostSdkPackageAsync(directory, cancellationToken); 1908var packages = await context.Channel.GetPackagesAsync(packageId, directory, cancellationToken); 1930var explicitChannelName = context.Channel.ShouldPersistChannelName() ? context.Channel.Name : null; 1933(context.Channel.Type is PackageChannelType.Explicit && 1934string.Equals(context.Channel.Name, PackageChannelNames.Stable, StringComparisons.ChannelName) && 2003var requestedChannel = context.Channel.Type is PackageChannelType.Explicit 2004? context.Channel.Name
Projects\ProjectUpdater.cs (5)
36var channel = context.Channel; 389if (!context.HasExplicitChannel || context.Channel.Type != PackageChannelType.Explicit) 410context.Channel.Name, 427context.Channel.ShouldCreateNuGetConfig(), 428context.Channel.ConfigureGlobalPackagesFolder ? CliPathHelper.StagingNuGetPackagesFolderName : null,
Aspire.Cli.Tests (11)
Commands\UpdateCommandTests.cs (11)
1742capturedChannel = context.Channel; 1807capturedChannel = context.Channel; 1929capturedChannel = context.Channel; 2055updatedWithChannel = context.Channel.Name; 2677updatedWithChannel = context.Channel.Name; 2730updatedWithChannel = context.Channel.Name; 2891Assert.Equal(expectedChannel, context.Channel.Name); 2919Assert.Equal(selectedChannel, context.Channel.Name); 2947Assert.Equal("default", context.Channel.Name); 2983return (exitCode, context?.Channel.Name ?? string.Empty, promptInvoked); 3327capturedChannel = context.Channel;