Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

YarpSessionAffinityConfig

Struct
📦 Aspire.Hosting.Yarp v17.0.0

Represents session affinity configuration for a YARP cluster.

type YarpSessionAffinityConfig struct {
AffinityKeyName *string `json:"AffinityKeyName"`
Cookie *YarpSessionAffinityCookieConfig `json:"Cookie"`
Enabled *bool `json:"Enabled"`
FailurePolicy *string `json:"FailurePolicy"`
Policy *string `json:"Policy"`
}

Fields

AffinityKeyName*string
Gets or sets the affinity key name.
Enabled*booloptional
Gets or sets a value indicating whether session affinity is enabled.
FailurePolicy*string
Gets or sets the failure policy.
Policy*string
Gets or sets the session affinity policy.