18 writes to Channel
aspire (1)
Commands\UpdateCommand.cs (1)
451
Channel
= channel,
Aspire.Cli.Tests (17)
Projects\GuestAppHostProjectTests.cs (12)
1154
Channel
= implicitChannel,
1260
Channel
= channel,
1323
Channel
= CreateGuestUpdateChannel("2.0.0", explicitChannel: true),
1371
Channel
= CreateGuestUpdateChannel(projectUpdate ? "2.0.0" : "1.0.0", explicitChannel: true),
1422
Channel
= CreateGuestUpdateChannel("1.0.0", explicitChannel: false),
1675
Channel
= stableChannel,
1734
Channel
= stagingChannel,
1794
Channel
= stableChannel,
1850
Channel
= stableChannel,
1899
Channel
= stableChannel,
2409
Channel
= implicitChannel,
2499
Channel
= implicitChannel,
Projects\ProjectUpdaterNuGetConfigurationTests.cs (4)
998
Channel
= channel,
1110
Channel
= channel,
1283
Channel
= channel,
1772
Channel
= channel,
Projects\ProjectUpdaterTests.cs (1)
2136
Channel
= channel,
24 references to Channel
aspire (13)
Projects\GuestAppHostProject.cs (8)
1880
var latestSdkPackage = await context.
Channel
.GetLatestGuestAppHostSdkPackageAsync(directory, cancellationToken);
1908
var packages = await context.
Channel
.GetPackagesAsync(packageId, directory, cancellationToken);
1930
var explicitChannelName = context.
Channel
.ShouldPersistChannelName() ? context.
Channel
.Name : null;
1933
(context.
Channel
.Type is PackageChannelType.Explicit &&
1934
string.Equals(context.
Channel
.Name, PackageChannelNames.Stable, StringComparisons.ChannelName) &&
2003
var requestedChannel = context.
Channel
.Type is PackageChannelType.Explicit
2004
? context.
Channel
.Name
Projects\ProjectUpdater.cs (5)
36
var channel = context.
Channel
;
389
if (!context.HasExplicitChannel || context.
Channel
.Type != PackageChannelType.Explicit)
410
context.
Channel
.Name,
427
context.
Channel
.ShouldCreateNuGetConfig(),
428
context.
Channel
.ConfigureGlobalPackagesFolder ? CliPathHelper.StagingNuGetPackagesFolderName : null,
Aspire.Cli.Tests (11)
Commands\UpdateCommandTests.cs (11)
1742
capturedChannel = context.
Channel
;
1807
capturedChannel = context.
Channel
;
1929
capturedChannel = context.
Channel
;
2055
updatedWithChannel = context.
Channel
.Name;
2677
updatedWithChannel = context.
Channel
.Name;
2730
updatedWithChannel = context.
Channel
.Name;
2891
Assert.Equal(expectedChannel, context.
Channel
.Name);
2919
Assert.Equal(selectedChannel, context.
Channel
.Name);
2947
Assert.Equal("default", context.
Channel
.Name);
2983
return (exitCode, context?.
Channel
.Name ?? string.Empty, promptInvoked);
3327
capturedChannel = context.
Channel
;