2 instantiations of DcpNameGenerator
Aspire.Hosting.Tests (2)
Dashboard\DashboardLifecycleHookTests.cs (1)
203
new
DcpNameGenerator
(configuration, Options.Create(new DcpOptions())),
Dcp\DcpExecutorTests.cs (1)
1324
new
DcpNameGenerator
(configuration, Options.Create(dcpOptions)),
8 references to DcpNameGenerator
Aspire.Hosting (8)
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (2)
16
var
nameGenerator = beforeStartEvent.Services.GetRequiredService<
DcpNameGenerator
>();
Dashboard\DashboardLifecycleHook.cs (1)
36
DcpNameGenerator
nameGenerator,
Dcp\DcpExecutor.cs (4)
63
private readonly
DcpNameGenerator
_nameGenerator;
105
DcpNameGenerator
nameGenerator,
1411
network.Spec.NetworkName = $"{DefaultAspireNetworkName}-{
DcpNameGenerator
.GetRandomNameSuffix()}";
1578
modelResourceName =
DcpNameGenerator
.GetObjectNameForResource(modelResource, _options.Value);
DistributedApplicationBuilder.cs (1)
379
_innerBuilder.Services.AddSingleton<
DcpNameGenerator
>();