65 references to WithTerminal
Aspire.Hosting (6)
ApplicationModel\TerminalAnnotation.cs (2)
61
/// <see cref="TerminalResourceBuilderExtensions.
WithTerminal
{T}(IResourceBuilder{T}, Action{TerminalOptions}?)"/>.
138
/// <see cref="TerminalResourceBuilderExtensions.
WithTerminal
{T}(IResourceBuilder{T}, Action{TerminalOptions}?)"/>
ApplicationModel\TerminalResourceSnapshotProperties.cs (1)
14
/// <see cref="TerminalResourceBuilderExtensions.
WithTerminal
{T}(IResourceBuilder{T}, Action{TerminalOptions}?)"/>.
Lifecycle\TerminalHostEventingSubscriber.cs (1)
16
/// installed by <see cref="TerminalResourceBuilderExtensions.
WithTerminal
{T}(IResourceBuilder{T}, Action{TerminalOptions}?)"/>;
TerminalResourceBuilderExtensions.cs (2)
114
/// Polyglot dispatcher for <see cref="
WithTerminal
{T}(IResourceBuilder{T}, Action{TerminalOptions}?)"/>.
125
=> builder.
WithTerminal
();
Aspire.Hosting.Tests (54)
Dcp\DcpExecutorTests.cs (5)
6608
var resource = builder.AddProject<Projects.ServiceA>("ServiceA").
WithTerminal
();
6652
builder.AddProject<Projects.ServiceA>("ServiceA").
WithTerminal
();
11113
.
WithTerminal
(options =>
11187
.
WithTerminal
(options =>
11233
.
WithTerminal
(options =>
Terminals\ResourceTerminalCatalogTests.cs (12)
58
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
72
builder.AddExecutable("myapp", "myapp", ".").WithAnnotation(new ReplicaAnnotation(3)).
WithTerminal
();
88
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
103
builder.AddExecutable("myapp", "myapp", ".").WithAnnotation(new ReplicaAnnotation(2)).
WithTerminal
();
116
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
128
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
142
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
157
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
176
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
196
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
230
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
245
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
WithTerminalTests.cs (37)
71
resource.
WithTerminal
();
101
resource.
WithTerminal
(options =>
125
() => resource.
WithTerminal
(options => options.Columns = columns));
141
() => resource.
WithTerminal
(options => options.Rows = rows));
166
resource.
WithTerminal
();
185
resource.
WithTerminal
();
200
resource.
WithTerminal
();
217
var result = resource.
WithTerminal
();
228
container.
WithTerminal
();
246
resource.
WithTerminal
();
268
resource.
WithTerminal
();
286
resource.
WithTerminal
(options => options.ShowTerminalHost = true);
319
.
WithTerminal
(options => options.ShowTerminalHost = showTerminalHost);
365
builder.AddExecutable("first", "myapp", ".").
WithTerminal
(),
366
builder.AddExecutable("second", "myapp", ".").
WithTerminal
(),
441
.
WithTerminal
(options =>
534
resource.
WithTerminal
();
586
resource.
WithTerminal
();
983
builder.AddExecutable("first", "myapp", ".").
WithTerminal
();
984
builder.AddExecutable("second", "myapp", ".").
WithTerminal
();
1001
var resource = builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
1016
resource.
WithTerminal
();
1119
Assert.Throws<ArgumentNullException>(() => builder.
WithTerminal
());
1128
resource.
WithTerminal
();
1130
Assert.Throws<InvalidOperationException>(() => resource.
WithTerminal
());
1139
resource.
WithTerminal
();
1158
resource.
WithTerminal
();
1187
resource.
WithTerminal
();
1209
resource.
WithTerminal
();
1239
var firstResource = firstBuilder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
1245
var secondResource = secondBuilder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
1257
var resource = builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
1282
resource.
WithTerminal
(options =>
1326
resource.
WithTerminal
();
1385
resource.
WithTerminal
();
1396
var resource = builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
1418
builder.AddExecutable("myapp", "myapp", ".").
WithTerminal
();
Terminals.AppHost (5)
AppHost.cs (5)
26
.
WithTerminal
(options =>
70
.
WithTerminal
(options => options.ShowTerminalHost = true);
90
.
WithTerminal
(options => options.ShowTerminalHost = true);
100
.
WithTerminal
(options => options.ShowTerminalHost = true);
104
.
WithTerminal
(options =>