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