10 references to SetException
Aspire.Hosting (1)
ApplicationModel\EndpointAnnotation.cs (1)
243
AllocatedEndpointSnapshot.
SetException
(new InvalidOperationException($"The endpoint `{Name}` is not allocated"));
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
160
portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.
SetException
(exception);
217
portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.
SetException
(ex);
Aspire.Hosting.Tests (7)
ValueSnapshotTests.cs (7)
79
snapshot.
SetException
(exception);
94
snapshot.
SetException
(exception);
109
snapshot.
SetException
(exception);
127
snapshot.
SetException
(exception);
156
snapshot.
SetException
(new InvalidOperationException());
172
snapshot.
SetException
(new InvalidOperationException());
211
Assert.Throws<ArgumentNullException>(() => snapshot.
SetException
(null!));