Class HookConfigurationBuilder
HookConfigurationBuilder is a builder for the SDK's hook configuration.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Integrations
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public sealed class HookConfigurationBuilder
Constructors
| Edit this page View SourceHookConfigurationBuilder()
Constructs a configuration representing no hooks by default.
Declaration
public HookConfigurationBuilder()
HookConfigurationBuilder(IEnumerable<Hook>)
Constructs a configuration from an existing collection of hooks.
Declaration
public HookConfigurationBuilder(IEnumerable<Hook> hooks)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Hook> | hooks | the collection of hooks |
Methods
| Edit this page View SourceAdd(Hook)
Adds a hook to the configuration. Hooks are executed in the order they are added; see Hook.
Declaration
public HookConfigurationBuilder Add(Hook hook)
Parameters
Type | Name | Description |
---|---|---|
Hook | hook | the hook |
Returns
Type | Description |
---|---|
HookConfigurationBuilder | the builder |
Build()
Builds the configuration.
Declaration
public HookConfiguration Build()
Returns
Type | Description |
---|---|
HookConfiguration | the build configuration |