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(); 60throw new CliProtocolException(); 71?? throw new CliProtocolException(); 74throw new CliProtocolException(); 79throw new CliProtocolException(); 93_ => throw new CliProtocolException() 123throw new CliProtocolException(); 133throw new CliProtocolException();
12 references to CliProtocolException
Aspire.Tray.Tests (12)
CliProtocolTests.cs (9)
96Assert.Throws<CliProtocolException>(() => CliProtocol.ReadWatchMessage(json)); 113Assert.Throws<CliProtocolException>(() => CliProtocol.ReadSnapshot(message)); 127Assert.Throws<CliProtocolException>(() => Parse(Snapshot(host))); 129Assert.Throws<CliProtocolException>(() => Parse(Snapshot(Host(42), Host(42)))); 130Assert.Throws<CliProtocolException>(() => Parse(Snapshot(Host(42), Host(42) with { AppHostPath = Path.GetFullPath("other.cs") }))); 145Assert.Throws<CliProtocolException>(() => Parse(Snapshot([.. hosts, Host(hosts.Length + 1)]))); 155Assert.Throws<CliProtocolException>(() => CliProtocol.ReadStopMessage(json)); 170await Assert.ThrowsAsync<CliProtocolException>(() => LinesAsync(value + "x\n")); 171await 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)