14 references to FoundryLocalService
Aspire.Hosting.Azure.Tests (3)
FoundryExtensionsTests.cs (3)
96
Assert.Equal(
FoundryLocalService
.ApiKey, localResource.ApiKey);
107
Assert.True(
FoundryLocalService
.TryParseModelId(output, out var modelId));
121
Assert.True(
FoundryLocalService
.TryParseModelId(output, out var modelId));
Aspire.Hosting.Foundry (11)
FoundryExtensions.cs (7)
180
builder.OnResourceStopped(static (_, _, ct) =>
FoundryLocalService
.StopAsync(ct));
293
resource.ApiKey =
FoundryLocalService
.ApiKey;
302
await
FoundryLocalService
.StartAsync(logger, ct).ConfigureAwait(false);
309
if (
FoundryLocalService
.IsServiceRunning)
311
resource.EmulatorServiceUri =
FoundryLocalService
.Endpoint;
387
await
FoundryLocalService
.LoadModelAsync(deployment.ModelId, ct).ConfigureAwait(false);
408
return await
FoundryLocalService
.DownloadModelAsync(model, progress => progressChannel.Writer.TryWrite(progress), ct).ConfigureAwait(false);
FoundryLocalHealthCheck.cs (1)
12
if (!
FoundryLocalService
.IsServiceRunning)
FoundryLocalService.cs (2)
377
return
FoundryLocalService
.StopAsync(cancellationToken);
382
return new(
FoundryLocalService
.StopAsync(CancellationToken.None));
LocalModelHealthCheck.cs (1)
17
if (!await
FoundryLocalService
.IsModelLoadedAsync(modelId, cancellationToken).ConfigureAwait(false))