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)
309
channelName: _executionContext.
IdentityChannel
,
403
channelName: _executionContext.
IdentityChannel
,
427
RequestedChannel: _executionContext.
IdentityChannel
,
435
(string.Equals(_executionContext.
IdentityChannel
, PackageChannelNames.Local, StringComparison.OrdinalIgnoreCase))
689
/// Resolves the <see cref="CliExecutionContext.
IdentityChannel
"/> into a channel name
713
var identityChannel = _executionContext.
IdentityChannel
;
Commands\NewCommand.cs (8)
119
|| string.Equals(ExecutionContext.
IdentityChannel
, PackageChannelNames.Staging, StringComparisons.ChannelName);
451
string.Equals(ExecutionContext.
IdentityChannel
, PackageChannelNames.Local, StringComparisons.ChannelName);
471
!string.IsNullOrWhiteSpace(ExecutionContext.
IdentityChannel
))
474
string.Equals(c.Name, ExecutionContext.
IdentityChannel
, StringComparisons.ChannelName));
480
string.Equals(c.Name, ExecutionContext.
IdentityChannel
, StringComparisons.ChannelName))
692
ExecutionContext.
IdentityChannel
,
836
/// Resolves <see cref="CliExecutionContext.
IdentityChannel
"/> to a registered channel name
846
var identity = ExecutionContext.
IdentityChannel
;
Commands\UpdateCommand.cs (3)
392
var identityChannel = ExecutionContext.
IdentityChannel
;
758
|| string.Equals(ExecutionContext.
IdentityChannel
, PackageChannelNames.Staging, StringComparisons.ChannelName);
801
var identityChannel = ExecutionContext.
IdentityChannel
;
KnownFeatures.cs (1)
180
/// <see cref="CliExecutionContext.
IdentityChannel
"/>. Callers that also need to expose
Packaging\PackagingService.cs (7)
167
if (TryResolvePrInstallPackagesDirectory(TryGetProcessPathForPrInstallDiscovery(), _executionContext.
IdentityChannel
) is { } prInstallPackagesDirectory)
171
prPackageChannels.RemoveAll(c => string.Equals(c.Name, _executionContext.
IdentityChannel
, StringComparisons.ChannelName));
172
prPackageChannels.Add(CreateLocalHiveChannel(_executionContext.
IdentityChannel
, prInstallPackagesDirectory));
238
var replacedChannelCount = channels.RemoveAll(c => string.Equals(c.Name, _executionContext.
IdentityChannel
, StringComparisons.ChannelName));
241
_executionContext.
IdentityChannel
,
244
channels.Add(CreateLocalHiveChannel(_executionContext.
IdentityChannel
, identityPackagesDirectory));
368
return _executionContext.
IdentityChannel
;
Program.cs (1)
971
executionContext.
IdentityChannel
,
Projects\IntegrationRestorePlan.cs (1)
50
localSourceDiscoveryChannel = executionContext.
IdentityChannel
;
Projects\PrebuiltAppHostServer.cs (1)
744
/// This is independent of the running CLI's <see cref="CliExecutionContext.
IdentityChannel
"/>.
Telemetry\AspireCliTelemetry.cs (1)
268
tagsList.Add(new(TelemetryConstants.Tags.IdentityChannel, _executionContext.
IdentityChannel
));
Templating\TemplateEngineFactory.cs (3)
510
var channels = (await packagingService.GetChannelsAsync(cancellationToken, executionContext.
IdentityChannel
)).ToArray();
512
string.Equals(channel.Name, executionContext.
IdentityChannel
, StringComparisons.ChannelName));
517
executionContext.
IdentityChannel
,
Templating\TemplateNuGetConfigService.cs (3)
274
string.Equals(executionContext.
IdentityChannel
, PackageChannelNames.Local, StringComparison.OrdinalIgnoreCase) &&
301
string.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)
420
Assert.Equal("staging", context.
IdentityChannel
);
466
Assert.Equal("staging", context.
IdentityChannel
);
CliBootstrapTests.cs (3)
110
Assert.Equal(channel, context.
IdentityChannel
);
293
Assert.Equal(bakedChannel, context.
IdentityChannel
);
387
Assert.Equal("pr-17159", context.
IdentityChannel
);
CliExecutionContextTests.cs (2)
37
Assert.Equal("local", ctx.
IdentityChannel
);
55
Assert.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