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)
177await terminal.SendTextAsync(input, cancellation.Token);
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177await terminal.SendTextAsync(input, cancellation.Token);
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177await terminal.SendTextAsync(input, cancellation.Token);
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177await terminal.SendTextAsync(input, cancellation.Token);
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177await terminal.SendTextAsync(input, cancellation.Token);
Aspire.Hosting.Tests (21)
Terminals\Hex1bAspireTerminalTests.cs (9)
66"text" => terminal.SendTextAsync("canceled", cts.Token), 85await terminal.SendTextAsync("after").DefaultTimeout(); 184await terminal.SendTextAsync("automation\r").DefaultTimeout(); 211await terminal.SendTextAsync("attached\r").DefaultTimeout(); 216await terminal.SendTextAsync("resized\r").DefaultTimeout(); 221await terminal.SendTextAsync("narrowed\r").DefaultTimeout(); 226await terminal.SendTextAsync("detached\r").DefaultTimeout(); 410await Assert.ThrowsAsync<InvalidOperationException>(() => terminal.SendTextAsync("input")); 464await terminal.SendTextAsync("automation-input").DefaultTimeout();
Terminals\InteractionServiceTerminalTests.cs (1)
384await terminal.SendTextAsync("still usable");
Terminals\ResourceAspireTerminalTests.cs (9)
42await terminal.SendTextAsync("echo apphost-was\"\"-here").DefaultTimeout(); 60await terminal.SendTextAsync("\r").DefaultTimeout(); 75await Assert.ThrowsAnyAsync<Exception>(() => terminal.SendTextAsync("hello")).DefaultTimeout(); 96await Assert.ThrowsAnyAsync<Exception>(() => terminal.SendTextAsync("not-delivered")).DefaultTimeout(); 99await terminal.SendTextAsync("echo recovered\"\"-connection\r").DefaultTimeout(); 113await terminal.SendTextAsync("echo first\"\"-host\r").DefaultTimeout(); 119await terminal.SendTextAsync("echo replacement\"\"-host\r").DefaultTimeout(); 135var canceledCall = terminal.SendTextAsync("first", cts.Token); 137var otherCall = terminal.SendTextAsync("second");
Terminals\ResourceTerminalCatalogTests.cs (1)
202var automation = first!.SendTextAsync("not-delivered");
Terminals\TerminalKeyInputTests.cs (1)
64await terminal.SendTextAsync("é😀").DefaultTimeout();
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
177await terminal.SendTextAsync(input, cancellation.Token);
Terminals.AppHost (3)
TerminalInteractionCommands.cs (3)
190await terminal.SendTextAsync("echo aspire-dock-ready\r", commandContext.CancellationToken); 423await terminal.SendTextAsync($"echo apphost-was-here-{marker}\n", commandContext.CancellationToken); 464await terminal.SendTextAsync($"{guess.ToString(CultureInfo.InvariantCulture)}\r", cancellationToken);