Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RunAsFoundryLocal

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (FoundryResource) RunAsFoundryLocal(options ...*RunAsFoundryLocalOptions) FoundryResource

Signature

methodRunAsFoundryLocalbuilder
Configures a Microsoft Foundry resource to use an Aspire-managed or existing Foundry Local service.
RunAsFoundryLocal(options ...*RunAsFoundryLocalOptions) FoundryResource
options...*RunAsFoundryLocalOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*RunAsFoundryLocalOptions argument.

Endpoint*stringThe endpoint of an existing Foundry Local service, or null for an Aspire-managed service.
FoundryResource

The configured Microsoft Foundry resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: