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