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