2 instantiations of DistributedApplicationBuilder
Aspire.Hosting (2)
DistributedApplication.cs (2)
141
var builder = new
DistributedApplicationBuilder
(new DistributedApplicationOptions() { Args = args });
186
var builder = new
DistributedApplicationBuilder
(options);
34 references to DistributedApplicationBuilder
Aspire.Hosting (11)
DistributedApplication.cs (2)
141
var
builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args });
186
var
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
"/>
320
var logger = sp.GetRequiredService<ILogger<
DistributedApplicationBuilder
>>();
336
sp.GetRequiredService<ILogger<
DistributedApplicationBuilder
>>().LogCritical(
458
private static DiagnosticListener LogBuilderConstructed(
DistributedApplicationBuilder
builder)
470
private static DiagnosticListener LogAppBuilding(
DistributedApplicationBuilder
appBuilder)
Aspire.Hosting.Testing (19)
DistributedApplicationEntryPointInvoker.cs (8)
21
Action<
DistributedApplicationBuilder
>? onConstructed = null,
22
Action<
DistributedApplicationBuilder
>? onBuilding = null,
51
private readonly Action<
DistributedApplicationBuilder
>? _onConstructed;
52
private readonly Action<
DistributedApplicationBuilder
>? _onBuilding;
59
Action<
DistributedApplicationBuilder
>? onConstructed,
60
Action<
DistributedApplicationBuilder
>? onBuilding,
192
owner._onConstructed?.Invoke((
DistributedApplicationBuilder
)value.Value!);
197
owner._onBuilding?.Invoke((
DistributedApplicationBuilder
)value.Value!);
DistributedApplicationFactory.cs (8)
25
private readonly TaskCompletionSource<
DistributedApplicationBuilder
> _builderTcs = new(TaskCreationOptions.RunContinuationsAsynchronously);
42
internal async Task<
DistributedApplicationBuilder
> ResolveBuilderAsync(CancellationToken cancellationToken = default)
114
protected virtual void OnBuilderCreated(
DistributedApplicationBuilder
applicationBuilder)
122
protected virtual void OnBuilding(
DistributedApplicationBuilder
applicationBuilder)
227
private void OnBuilderCreatedCore(
DistributedApplicationBuilder
applicationBuilder)
232
private 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.");
390
private void InterceptHostCreation(
DistributedApplicationBuilder
applicationBuilder)
DistributedApplicationTestingBuilder.cs (3)
127
protected override void OnBuilderCreated(
DistributedApplicationBuilder
applicationBuilder)
132
protected override void OnBuilding(
DistributedApplicationBuilder
applicationBuilder)
158
private sealed class Builder(SuspendingDistributedApplicationFactory factory,
DistributedApplicationBuilder
innerBuilder) : IDistributedApplicationTestingBuilder
Aspire.Hosting.Testing.Tests (2)
DistributedApplicationFixtureOfT.cs (2)
21
protected override void OnBuilderCreated(
DistributedApplicationBuilder
applicationBuilder)
26
protected override void OnBuilding(
DistributedApplicationBuilder
applicationBuilder)
Aspire.Hosting.Tests (2)
Utils\TestDistributedApplicationBuilder.cs (2)
29
private readonly
DistributedApplicationBuilder
_innerBuilder;
180
public static
DistributedApplicationBuilder
CreateBuilder(Action<DistributedApplicationOptions, HostApplicationBuilderSettings> onConstructing)