32 references to SendTextAsync
Aspire.Hosting (2)
ApplicationModel\AspireTerminal.cs (1)
107
/// sends Control+R. Use <see cref="
SendTextAsync
"/> for arbitrary text rather than individual keys.
ApplicationModel\AspireTerminalKey.cs (1)
22
/// Digit and punctuation keys follow the US keyboard layout. Use <see cref="AspireTerminal.
SendTextAsync
"/>
Aspire.Hosting.MongoDB.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177
await terminal.
SendTextAsync
(input, cancellation.Token);
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177
await terminal.
SendTextAsync
(input, cancellation.Token);
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177
await terminal.
SendTextAsync
(input, cancellation.Token);
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177
await terminal.
SendTextAsync
(input, cancellation.Token);
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177
await terminal.
SendTextAsync
(input, cancellation.Token);
Aspire.Hosting.Tests (21)
Terminals\Hex1bAspireTerminalTests.cs (9)
66
"text" => terminal.
SendTextAsync
("canceled", cts.Token),
85
await terminal.
SendTextAsync
("after").DefaultTimeout();
184
await terminal.
SendTextAsync
("automation\r").DefaultTimeout();
211
await terminal.
SendTextAsync
("attached\r").DefaultTimeout();
216
await terminal.
SendTextAsync
("resized\r").DefaultTimeout();
221
await terminal.
SendTextAsync
("narrowed\r").DefaultTimeout();
226
await terminal.
SendTextAsync
("detached\r").DefaultTimeout();
410
await Assert.ThrowsAsync<InvalidOperationException>(() => terminal.
SendTextAsync
("input"));
464
await terminal.
SendTextAsync
("automation-input").DefaultTimeout();
Terminals\InteractionServiceTerminalTests.cs (1)
384
await terminal.
SendTextAsync
("still usable");
Terminals\ResourceAspireTerminalTests.cs (9)
42
await terminal.
SendTextAsync
("echo apphost-was\"\"-here").DefaultTimeout();
60
await terminal.
SendTextAsync
("\r").DefaultTimeout();
75
await Assert.ThrowsAnyAsync<Exception>(() => terminal.
SendTextAsync
("hello")).DefaultTimeout();
96
await Assert.ThrowsAnyAsync<Exception>(() => terminal.
SendTextAsync
("not-delivered")).DefaultTimeout();
99
await terminal.
SendTextAsync
("echo recovered\"\"-connection\r").DefaultTimeout();
113
await terminal.
SendTextAsync
("echo first\"\"-host\r").DefaultTimeout();
119
await terminal.
SendTextAsync
("echo replacement\"\"-host\r").DefaultTimeout();
135
var canceledCall = terminal.
SendTextAsync
("first", cts.Token);
137
var otherCall = terminal.
SendTextAsync
("second");
Terminals\ResourceTerminalCatalogTests.cs (1)
202
var automation = first!.
SendTextAsync
("not-delivered");
Terminals\TerminalKeyInputTests.cs (1)
64
await terminal.
SendTextAsync
("é😀").DefaultTimeout();
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177
await terminal.
SendTextAsync
(input, cancellation.Token);
Terminals.AppHost (3)
TerminalInteractionCommands.cs (3)
190
await terminal.
SendTextAsync
("echo aspire-dock-ready\r", commandContext.CancellationToken);
423
await terminal.
SendTextAsync
($"echo apphost-was-here-{marker}\n", commandContext.CancellationToken);
464
await terminal.
SendTextAsync
($"{guess.ToString(CultureInfo.InvariantCulture)}\r", cancellationToken);