10 references to SetException
Aspire.Hosting (1)
ApplicationModel\EndpointAnnotation.cs (1)
166AllocatedEndpointSnapshot.SetException(new InvalidOperationException($"The endpoint `{Name}` is not allocated"));
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
143portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.SetException(exception); 198portResource.TunnelEndpointAnnotation.AllocatedEndpointSnapshot.SetException(ex);
Aspire.Hosting.Tests (7)
ValueSnapshotTests.cs (7)
78snapshot.SetException(exception); 93snapshot.SetException(exception); 108snapshot.SetException(exception); 126snapshot.SetException(exception); 155snapshot.SetException(new InvalidOperationException()); 171snapshot.SetException(new InvalidOperationException()); 210Assert.Throws<ArgumentNullException>(() => snapshot.SetException(null!));