16 instantiations of CliProtocolException
Aspire.Tray.Tests (16)
src\Aspire.Tray\Common\CliAppHostClient.cs (2)
138throw new CliProtocolException(); 144throw new CliProtocolException();
src\Aspire.Tray\Common\CliAppHostCommands.cs (2)
122throw new CliProtocolException(); 130throw new CliProtocolException();
src\Aspire.Tray\Common\CliProtocol.cs (12)
16?? throw new CliProtocolException(); 19throw new CliProtocolException(); 26_ => throw new CliProtocolException() 34throw new CliProtocolException(); 44throw new CliProtocolException(); 59throw new CliProtocolException(); 70?? throw new CliProtocolException(); 73throw new CliProtocolException(); 78throw new CliProtocolException(); 92_ => throw new CliProtocolException() 122throw new CliProtocolException(); 132throw new CliProtocolException();
12 references to CliProtocolException
Aspire.Tray.Tests (12)
CliProtocolTests.cs (9)
95Assert.Throws<CliProtocolException>(() => CliProtocol.ReadWatchMessage(json)); 112Assert.Throws<CliProtocolException>(() => CliProtocol.ReadSnapshot(message)); 126Assert.Throws<CliProtocolException>(() => Parse(Snapshot(host))); 128Assert.Throws<CliProtocolException>(() => Parse(Snapshot(Host(42), Host(42)))); 129Assert.Throws<CliProtocolException>(() => Parse(Snapshot(Host(42), Host(42) with { AppHostPath = Path.GetFullPath("other.cs") }))); 144Assert.Throws<CliProtocolException>(() => Parse(Snapshot([.. hosts, Host(hosts.Length + 1)]))); 154Assert.Throws<CliProtocolException>(() => CliProtocol.ReadStopMessage(json)); 169await Assert.ThrowsAsync<CliProtocolException>(() => LinesAsync(value + "x\n")); 170await Assert.ThrowsAsync<CliProtocolException>(() => LinesAsync(value + "\rx\n"));
src\Aspire.Tray\Common\CliAppHostClient.cs (2)
66catch (Exception ex) when (ex is IOException or Win32Exception or CliProtocolException 89if (failure is CliProtocolException or JsonException)
src\Aspire.Tray\Common\CliAppHostCommands.cs (1)
138catch (Exception ex) when (ex is CliProtocolException or JsonException)