57 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)
309channelName: _executionContext.IdentityChannel, 403channelName: _executionContext.IdentityChannel, 427RequestedChannel: _executionContext.IdentityChannel, 435(string.Equals(_executionContext.IdentityChannel, PackageChannelNames.Local, StringComparison.OrdinalIgnoreCase)) 689/// Resolves the <see cref="CliExecutionContext.IdentityChannel"/> into a channel name 713var identityChannel = _executionContext.IdentityChannel;
Commands\NewCommand.cs (8)
119|| string.Equals(ExecutionContext.IdentityChannel, PackageChannelNames.Staging, StringComparisons.ChannelName); 451string.Equals(ExecutionContext.IdentityChannel, PackageChannelNames.Local, StringComparisons.ChannelName); 471!string.IsNullOrWhiteSpace(ExecutionContext.IdentityChannel)) 474string.Equals(c.Name, ExecutionContext.IdentityChannel, StringComparisons.ChannelName)); 480string.Equals(c.Name, ExecutionContext.IdentityChannel, StringComparisons.ChannelName)) 692ExecutionContext.IdentityChannel, 836/// Resolves <see cref="CliExecutionContext.IdentityChannel"/> to a registered channel name 846var identity = ExecutionContext.IdentityChannel;
Commands\UpdateCommand.cs (3)
392var identityChannel = ExecutionContext.IdentityChannel; 758|| string.Equals(ExecutionContext.IdentityChannel, PackageChannelNames.Staging, StringComparisons.ChannelName); 801var identityChannel = ExecutionContext.IdentityChannel;
KnownFeatures.cs (1)
180/// <see cref="CliExecutionContext.IdentityChannel"/>. Callers that also need to expose
Packaging\PackagingService.cs (7)
167if (TryResolvePrInstallPackagesDirectory(TryGetProcessPathForPrInstallDiscovery(), _executionContext.IdentityChannel) is { } prInstallPackagesDirectory) 171prPackageChannels.RemoveAll(c => string.Equals(c.Name, _executionContext.IdentityChannel, StringComparisons.ChannelName)); 172prPackageChannels.Add(CreateLocalHiveChannel(_executionContext.IdentityChannel, prInstallPackagesDirectory)); 238var replacedChannelCount = channels.RemoveAll(c => string.Equals(c.Name, _executionContext.IdentityChannel, StringComparisons.ChannelName)); 241_executionContext.IdentityChannel, 244channels.Add(CreateLocalHiveChannel(_executionContext.IdentityChannel, identityPackagesDirectory)); 368return _executionContext.IdentityChannel;
Program.cs (1)
971executionContext.IdentityChannel,
Projects\IntegrationRestorePlan.cs (1)
50localSourceDiscoveryChannel = executionContext.IdentityChannel;
Projects\PrebuiltAppHostServer.cs (1)
744/// This is independent of the running CLI's <see cref="CliExecutionContext.IdentityChannel"/>.
Telemetry\AspireCliTelemetry.cs (1)
268tagsList.Add(new(TelemetryConstants.Tags.IdentityChannel, _executionContext.IdentityChannel));
Templating\TemplateEngineFactory.cs (3)
510var channels = (await packagingService.GetChannelsAsync(cancellationToken, executionContext.IdentityChannel)).ToArray(); 512string.Equals(channel.Name, executionContext.IdentityChannel, StringComparisons.ChannelName)); 517executionContext.IdentityChannel,
Templating\TemplateNuGetConfigService.cs (3)
274string.Equals(executionContext.IdentityChannel, PackageChannelNames.Local, StringComparison.OrdinalIgnoreCase) && 301string.Equals(c.Name, executionContext.IdentityChannel, StringComparison.OrdinalIgnoreCase)); 498/// <see cref="CliExecutionContext.IdentityChannel"/>. When null, channel selection falls
Aspire.Cli.Tests (20)
Acquisition\IdentityResolverTests.cs (2)
420Assert.Equal("staging", context.IdentityChannel); 466Assert.Equal("staging", context.IdentityChannel);
CliBootstrapTests.cs (3)
110Assert.Equal(channel, context.IdentityChannel); 293Assert.Equal(bakedChannel, context.IdentityChannel); 387Assert.Equal("pr-17159", context.IdentityChannel);
CliExecutionContextTests.cs (2)
37Assert.Equal("local", ctx.IdentityChannel); 55Assert.Equal(channel, ctx.IdentityChannel);
Commands\InitCommandTests.cs (8)
80/// <see cref="CliExecutionContext.IdentityChannel"/> as the channel override; this helper keeps 1197/// as <see cref="CliExecutionContext.IdentityChannel"/>). One named explicit channel is registered 1301/// (exposed as <see cref="CliExecutionContext.IdentityChannel"/>). One named explicit channel is 1450/// When the running CLI's <see cref="CliExecutionContext.IdentityChannel"/> doesn't match 1802/// <c>[AssemblyMetadata("AspireCliChannel", "local")]</c>, and <see cref="CliExecutionContext.IdentityChannel"/> 1804/// <see cref="CliExecutionContext.IdentityChannel"/> as the channel-override into 1889/// binary (exposed as <see cref="CliExecutionContext.IdentityChannel"/>) BEFORE invoking 2380/// channel matching <see cref="CliExecutionContext.IdentityChannel"/> rather than just
Commands\NewCommandChannelResolutionTests.cs (2)
23/// channel preference from <c>--channel</c>, <see cref="CliExecutionContext.IdentityChannel"/>, 362/// <see cref="CliExecutionContext.IdentityChannel"/> through <c>inputs.Channel</c> so the
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
43/// 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