Share via


StackExchangeRedisSettings.DisableAutoActivation Property

Definition

Gets or sets a boolean value that indicates whether auto activation is disabled or not.

public bool DisableAutoActivation { get; set; }
member this.DisableAutoActivation : bool with get, set
Public Property DisableAutoActivation As Boolean

Property Value

The default value is true.

Remarks

When auto activation is enabled, the Redis connection is established at startup time rather than on first use, which prevents blocking threads when the connection is first requested from the DI container.

Applies to