1 instantiation of ReceivedCommand
Aspire.Hosting.Browsers.Tests (1)
BrowserLogsCdpConnectionTests.cs (1)
331return new ReceivedCommand(id, method, sessionId, targetId, url, format, fromSurface);
9 references to ReceivedCommand
Aspire.Hosting.Browsers.Tests (9)
BrowserLogsCdpConnectionTests.cs (9)
56var firstCommand = await ReceiveCommandAsync(pair.ServerSocket).DefaultTimeout(); 57var secondCommand = await ReceiveCommandAsync(pair.ServerSocket).DefaultTimeout(); 58var createTargetCommand = Assert.Single(new[] { firstCommand, secondCommand }, static command => command.Method == BrowserLogsCdpProtocol.TargetCreateTargetMethod); 59var attachToTargetCommand = Assert.Single(new[] { firstCommand, secondCommand }, static command => command.Method == BrowserLogsCdpProtocol.TargetAttachToTargetMethod); 126var command = await ReceiveCommandAsync(pair.ServerSocket).DefaultTimeout(); 168var command = ParseReceivedCommand(await ReceiveNullTerminatedFrameAsync(browserRead).DefaultTimeout()); 296private static async Task<ReceivedCommand> ReceiveCommandAsync(WebSocket socket) 302private static ReceivedCommand ParseReceivedCommand(byte[] json) 308private static ReceivedCommand ParseReceivedCommand(JsonElement root)