2 instantiations of DistributedApplicationBuilder
Aspire.Hosting (2)
DistributedApplication.cs (2)
141var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args }); 186var builder = new DistributedApplicationBuilder(options);
34 references to DistributedApplicationBuilder
Aspire.Hosting (11)
DistributedApplication.cs (2)
141var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args }); 186var builder = new DistributedApplicationBuilder(options);
DistributedApplicationBuilder.cs (9)
31/// The <see cref="DistributedApplicationBuilder"/> is the primary implementation of 82/// Initializes a new instance of the <see cref="DistributedApplicationBuilder"/> class with the specified options. 87/// Developers will not typically construct an instance of the <see cref="DistributedApplicationBuilder"/> 103/// Initializes a new instance of the <see cref="DistributedApplicationBuilder"/> class with the specified options. 108/// Developers will not typically construct an instance of the <see cref="DistributedApplicationBuilder"/> 320var logger = sp.GetRequiredService<ILogger<DistributedApplicationBuilder>>(); 336sp.GetRequiredService<ILogger<DistributedApplicationBuilder>>().LogCritical( 458private static DiagnosticListener LogBuilderConstructed(DistributedApplicationBuilder builder) 470private static DiagnosticListener LogAppBuilding(DistributedApplicationBuilder appBuilder)
Aspire.Hosting.Testing (19)
DistributedApplicationEntryPointInvoker.cs (8)
21Action<DistributedApplicationBuilder>? onConstructed = null, 22Action<DistributedApplicationBuilder>? onBuilding = null, 51private readonly Action<DistributedApplicationBuilder>? _onConstructed; 52private readonly Action<DistributedApplicationBuilder>? _onBuilding; 59Action<DistributedApplicationBuilder>? onConstructed, 60Action<DistributedApplicationBuilder>? onBuilding, 192owner._onConstructed?.Invoke((DistributedApplicationBuilder)value.Value!); 197owner._onBuilding?.Invoke((DistributedApplicationBuilder)value.Value!);
DistributedApplicationFactory.cs (8)
25private readonly TaskCompletionSource<DistributedApplicationBuilder> _builderTcs = new(TaskCreationOptions.RunContinuationsAsynchronously); 42internal async Task<DistributedApplicationBuilder> ResolveBuilderAsync(CancellationToken cancellationToken = default) 114protected virtual void OnBuilderCreated(DistributedApplicationBuilder applicationBuilder) 122protected virtual void OnBuilding(DistributedApplicationBuilder applicationBuilder) 227private void OnBuilderCreatedCore(DistributedApplicationBuilder applicationBuilder) 232private void OnBuildingCore(DistributedApplicationBuilder applicationBuilder) 269$"Could not intercept application builder instance. Ensure that {_entryPoint} is a type in an executable assembly, that the entrypoint creates an {typeof(DistributedApplicationBuilder)}, and that the resulting {typeof(DistributedApplication)} is being started."); 390private void InterceptHostCreation(DistributedApplicationBuilder applicationBuilder)
DistributedApplicationTestingBuilder.cs (3)
127protected override void OnBuilderCreated(DistributedApplicationBuilder applicationBuilder) 132protected override void OnBuilding(DistributedApplicationBuilder applicationBuilder) 158private sealed class Builder(SuspendingDistributedApplicationFactory factory, DistributedApplicationBuilder innerBuilder) : IDistributedApplicationTestingBuilder
Aspire.Hosting.Testing.Tests (2)
DistributedApplicationFixtureOfT.cs (2)
21protected override void OnBuilderCreated(DistributedApplicationBuilder applicationBuilder) 26protected override void OnBuilding(DistributedApplicationBuilder applicationBuilder)
Aspire.Hosting.Tests (2)
Utils\TestDistributedApplicationBuilder.cs (2)
29private readonly DistributedApplicationBuilder _innerBuilder; 180public static DistributedApplicationBuilder CreateBuilder(Action<DistributedApplicationOptions, HostApplicationBuilderSettings> onConstructing)