Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddFlagd

Method
📦 CommunityToolkit.Aspire.Hosting.Flagd v13.6.1
func (DistributedApplicationBuilder) AddFlagd(
name string,
options ...*AddFlagdOptions,
) FlagdResource

Signature

methodAddFlagdbuilder
Adds a flagd container to the application model.
AddFlagd(
name string,
options ...*AddFlagdOptions,
) FlagdResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
options...*AddFlagdOptionsOptional settings, described under Options.

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

Port*float64The host port for flagd HTTP endpoint. If not provided, a random port will be assigned.
OfrepPort*float64The host port for flagd OFREP endpoint. If not provided, a random port will be assigned.
FlagdResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder