Click or drag to resize

LdClientDispose Method

Shuts down the client and releases any resources it is using.

Namespace:  LaunchDarkly.Client
Assembly:  LaunchDarkly.ServerSdk (in LaunchDarkly.ServerSdk.dll) Version: 5.14.0

Unless it is offline, the client will attempt to deliver any pending analytics events before closing.

Any components that were added by specifying a factory object (WithFeatureStore(Configuration, IFeatureStore), etc.) will also be disposed of by this method; their lifecycle is the same as the client's. However, for any components that you constructed yourself and passed in (via the deprecated method WithFeatureStore(Configuration, IFeatureStore), or the deprecated LdClient constructor that takes an IEventProcessor), this will not happen; you are responsible for managing their lifecycle.

See Also