15 references to Runtime
Aspire.Hosting.Native.Core.Tests (8)
DcpWorkloadCleanupTests.cs (1)
235
() => new ContainerWorkload("example:1", 6379, [], []), executor, options.
Runtime
,
NativeServerOptionsTests.cs (4)
26
Assert.Equal(TimeSpan.FromMinutes(5), options.
Runtime
.WorkloadStartupTimeout);
27
Assert.Equal(TimeSpan.FromSeconds(1), options.
Runtime
.ObservationInterval);
28
Assert.Equal(5, options.
Runtime
.RetainedResourceLogEntries);
29
Assert.Equal(3, options.
Runtime
.MaximumPendingRequestsPerResource);
NativeTimeProviderTests.cs (2)
27
Assert.Same(clock, options.
Runtime
.TimeProvider);
28
var server = new NativeApplicationServer(UnavailableWorkloadExecutor.Instance, options.
Runtime
);
TestServices\NativeClientTestHost.cs (1)
102
new Aspire.Hosting.Native.Api.NativeApplicationServer(executor ?? UnavailableWorkloadExecutor.Instance, options.
Runtime
), null, options);
Aspire.Hosting.Native.Server (7)
Cli\NativeCliProtocol.cs (1)
145
var interval = Math.Max((int)_options.
Runtime
.ObservationInterval.TotalMilliseconds, 1);
Dashboard\NativeDashboardHost.cs (1)
55
builder.Services.AddSingleton(new NativeDashboardService(server, applicationName, options.
Runtime
));
NativeServerHostedService.cs (2)
93
var server = new NativeApplicationServer(UnavailableWorkloadExecutor.Instance, options.
Runtime
);
102
loggerFactory.CreateLogger<DcpWorkloadExecutor>()), options.
Runtime
);
NativeServerOptions.cs (3)
54
ArgumentNullException.ThrowIfNull(
Runtime
);
56
Runtime
.TimeProvider = TimeProvider;
57
Runtime
.Validate();