58 references to IdentityChannel
aspire (37)
CliExecutionContext.cs (2)
95/// (<see cref="IdentityChannel"/>, <see cref="IdentityVersion"/>, 130/// channel named after <see cref="IdentityChannel"/> that maps
Commands\InitCommand.cs (6)
260channelName: _executionContext.IdentityChannel, 362channelName: _executionContext.IdentityChannel, 386RequestedChannel: _executionContext.IdentityChannel, 394(string.Equals(_executionContext.IdentityChannel, PackageChannelNames.Local, StringComparison.OrdinalIgnoreCase)) 647/// Resolves the <see cref="CliExecutionContext.IdentityChannel"/> into a channel name 671var identityChannel = _executionContext.IdentityChannel;
Commands\NewCommand.cs (8)
96|| string.Equals(ExecutionContext.IdentityChannel, PackageChannelNames.Staging, StringComparisons.ChannelName); 364string.Equals(ExecutionContext.IdentityChannel, PackageChannelNames.Local, StringComparisons.ChannelName); 384!string.IsNullOrWhiteSpace(ExecutionContext.IdentityChannel)) 387string.Equals(c.Name, ExecutionContext.IdentityChannel, StringComparisons.ChannelName)); 393string.Equals(c.Name, ExecutionContext.IdentityChannel, StringComparisons.ChannelName)) 564ExecutionContext.IdentityChannel, 619/// Resolves <see cref="CliExecutionContext.IdentityChannel"/> to a registered channel name 629var identity = ExecutionContext.IdentityChannel;
Commands\UpdateCommand.cs (3)
307var identityChannel = ExecutionContext.IdentityChannel; 640|| string.Equals(ExecutionContext.IdentityChannel, PackageChannelNames.Staging, StringComparisons.ChannelName); 683var identityChannel = ExecutionContext.IdentityChannel;
KnownFeatures.cs (1)
150/// <see cref="CliExecutionContext.IdentityChannel"/>. Callers that also need to expose
Packaging\PackagingService.cs (7)
168if (TryResolvePrInstallPackagesDirectory(TryGetProcessPathForPrInstallDiscovery(), _executionContext.IdentityChannel) is { } prInstallPackagesDirectory) 172prPackageChannels.RemoveAll(c => string.Equals(c.Name, _executionContext.IdentityChannel, StringComparisons.ChannelName)); 173prPackageChannels.Add(CreateLocalHiveChannel(_executionContext.IdentityChannel, prInstallPackagesDirectory)); 239var replacedChannelCount = channels.RemoveAll(c => string.Equals(c.Name, _executionContext.IdentityChannel, StringComparisons.ChannelName)); 242_executionContext.IdentityChannel, 245channels.Add(CreateLocalHiveChannel(_executionContext.IdentityChannel, identityPackagesDirectory)); 370return _executionContext.IdentityChannel;
Program.cs (1)
875executionContext.IdentityChannel,
Projects\PrebuiltAppHostServer.cs (1)
968/// This is independent of the running CLI's <see cref="CliExecutionContext.IdentityChannel"/>.
Telemetry\AspireCliTelemetry.cs (1)
309tagsList.Add(new(TelemetryConstants.Tags.IdentityChannel, _executionContext.IdentityChannel));
Templating\TemplateNuGetConfigService.cs (7)
84/// <see cref="CliExecutionContext.IdentityChannel"/>. 89/// CLI's <see cref="CliExecutionContext.IdentityChannel"/> — all are name-equivalent 121/// <see cref="CliExecutionContext.IdentityChannel"/>. 126/// CLI's <see cref="CliExecutionContext.IdentityChannel"/> — all are name-equivalent 241string.Equals(executionContext.IdentityChannel, PackageChannelNames.Local, StringComparison.OrdinalIgnoreCase) && 268string.Equals(c.Name, executionContext.IdentityChannel, StringComparison.OrdinalIgnoreCase)); 471/// <see cref="CliExecutionContext.IdentityChannel"/>. When null, channel selection falls
Aspire.Cli.Tests (21)
Acquisition\IdentityResolverTests.cs (2)
420Assert.Equal("staging", context.IdentityChannel); 466Assert.Equal("staging", context.IdentityChannel);
CliBootstrapTests.cs (4)
22/// <see cref="CliExecutionContext.IdentityChannel"/> is sourced from the binary's 96Assert.Equal(channel, context.IdentityChannel); 115Assert.Equal(bakedChannel, context.IdentityChannel); 164Assert.Equal("pr-17159", context.IdentityChannel);
CliExecutionContextTests.cs (2)
37Assert.Equal("local", ctx.IdentityChannel); 55Assert.Equal(channel, ctx.IdentityChannel);
Commands\InitCommandTests.cs (8)
30/// <see cref="CliExecutionContext.IdentityChannel"/> as the channel override; this helper keeps 924/// as <see cref="CliExecutionContext.IdentityChannel"/>). One named explicit channel is registered 1028/// (exposed as <see cref="CliExecutionContext.IdentityChannel"/>). One named explicit channel is 1177/// When the running CLI's <see cref="CliExecutionContext.IdentityChannel"/> doesn't match 1528/// <c>[AssemblyMetadata("AspireCliChannel", "local")]</c>, and <see cref="CliExecutionContext.IdentityChannel"/> 1530/// <see cref="CliExecutionContext.IdentityChannel"/> as the channel-override into 1615/// binary (exposed as <see cref="CliExecutionContext.IdentityChannel"/>) BEFORE invoking 2111/// channel matching <see cref="CliExecutionContext.IdentityChannel"/> rather than just
Commands\NewCommandChannelResolutionTests.cs (2)
23/// channel preference from <c>--channel</c>, <see cref="CliExecutionContext.IdentityChannel"/>, 361/// <see cref="CliExecutionContext.IdentityChannel"/> through <c>inputs.Channel</c> so the
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
44/// never as a silent fallback to <see cref="CliExecutionContext.IdentityChannel"/>.
Scaffolding\ChannelReseedTests.cs (2)
19/// does NOT fall back to <see cref="CliExecutionContext.IdentityChannel"/>. 24/// passes <see langword="null"/>. Pinning <see cref="CliExecutionContext.IdentityChannel"/> when