6 references to WithComputeEnvironment
Aspire.Hosting.Native.Core.Tests (5)
NativeModelAlignmentTests.cs (5)
24workload.WithComputeEnvironment(first); 25workload.WithComputeEnvironment(second); 50Assert.Throws<ArgumentException>(() => api.WithComputeEnvironment(environment)); 51Assert.Throws<ArgumentException>(() => api.WithComputeEnvironment(invalid)); 52Assert.Throws<ArgumentException>(() => api.WithComputeEnvironment(api));
Aspire.Hosting.Native.Server (1)
artifacts\obj\Aspire.Hosting.Native.Server\Debug\native-ats\NativeDispatch.g.cs (1)
660target.WithComputeEnvironment(handles.Get<DeclaredResource>(arguments["environment"], "Aspire.Hosting.Native.Server/Aspire.Hosting.Native.Api.DeclaredResource"));