29 references to SendAsync
Aspire.Dashboard.Tests (29)
Terminal\TerminalWebSocketTests.cs (29)
71await SendAsync(browser, JsonSerializer.Serialize(new { type = "marker", action = "details", requestId = 1, id }), timeout.Token);
80await SendAsync(browser, JsonSerializer.Serialize(new { type = "marker", action = "jump", requestId = 2, id }), timeout.Token);
100await SendAsync(browser, """{"type":"requestPrimary","columns":100,"rows":30}""", timeout.Token);
111await SendAsync(browser, JsonSerializer.Serialize(new { type = "resize", columns = width, rows = 30 }), timeout.Token);
124await SendAsync(browser, """{"type":"resize","columns":20,"rows":30}""", timeout.Token);
147await SendAsync(first, """{"type":"resize","columns":80,"rows":24}""", timeout.Token);
148await SendAsync(first, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token);
161await SendAsync(second, """{"type":"requestPrimary","columns":132,"rows":30}""", timeout.Token);
467await SendAsync(second, """{"type":"input","text":"x"}""", timeout.Token);
497await SendAsync(browser, """{"type":"input","text":"blocked-input"}""", timeout.Token);
498await SendAsync(browser, """{"type":"paste","text":"blocked-paste"}""", timeout.Token);
500await SendAsync(browser, """{"type":"key","key":"Enter","ctrl":false,"alt":false,"shift":false}""", timeout.Token);
501await SendAsync(browser, """{"type":"mouse","action":"down","button":"left","x":1,"y":1}""", timeout.Token);
502await SendAsync(browser, """{"type":"resize","columns":80,"rows":24}""", timeout.Token);
503await SendAsync(browser, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token);
504await SendAsync(browser, """{"type":"resync"}""", timeout.Token);
514await SendAsync(browser, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token);
518await SendAsync(browser, """{"type":"input","text":"allowed"}""", timeout.Token);
549await SendAsync(interactive, """{"type":"requestPrimary","columns":80,"rows":24}""", timeout.Token);
553await SendAsync(readOnly, """{"type":"requestPrimary","columns":120,"rows":40}""", timeout.Token);
554await SendAsync(readOnly, """{"type":"paste","text":"blocked"}""", timeout.Token);
555await SendAsync(readOnly, """{"type":"resync"}""", timeout.Token);
562await SendAsync(interactive, """{"type":"input","text":"x"}""", timeout.Token);
595await SendAsync(browser, command, timeout.Token);
755await SendAsync(socket, JsonSerializer.Serialize(new { type = "viewport", requestId, delta = -10000 }), cancellationToken);
761await SendAsync(socket, JsonSerializer.Serialize(new
775await SendAsync(socket, JsonSerializer.Serialize(new { type = "selection", action = "clear", requestId = requestId + 2 }), cancellationToken);
779await SendAsync(socket, JsonSerializer.Serialize(new { type = "viewport", live = true, requestId = requestId + 3 }), cancellationToken);
826await SendAsync(socket, $$"""{"type":"ack","revision":{{frame.GetProperty("revision").GetUInt32()}}}""", cancellationToken);