Table of Contents

Class DomModuleBuilder<T>

Namespace
Skyline.DataMiner.Utils.DOM.Builders
Assembly
Skyline.DataMiner.Utils.DOM.dll

Provides a generic builder for configuring and creating Skyline.DataMiner.Net.Apps.Modules.ModuleSettings instances for DOM modules.

public class DomModuleBuilder<T> where T : DomModuleBuilder<T>

Type Parameters

T

The type of the builder, used for fluent chaining.

Inheritance
DomModuleBuilder<T>
Derived
Extension Methods

Constructors

DomModuleBuilder()

Initializes a new instance of the DomModuleBuilder<T> class.

DomModuleBuilder(ModuleSettings)

Initializes a new instance of the DomModuleBuilder<T> class using an existing Skyline.DataMiner.Net.Apps.Modules.ModuleSettings.

Fields

_moduleSettings

The Skyline.DataMiner.Net.Apps.Modules.ModuleSettings instance being built.

Methods

Build()

Builds and returns the configured Skyline.DataMiner.Net.Apps.Modules.ModuleSettings instance.

WithCrudType(OnDomInstanceActionScriptType)

Sets the CRUD script type for DOM instance actions.

WithHistory(bool)

Enables or disables history storage for DOM instances.

WithHistoryBehavior(DomInstanceHistoryStorageBehavior)

Sets the history storage behavior for DOM instances.

WithHistoryTTL(TimeSpan?)

Sets the time-to-live (TTL) for DOM instance history.

WithInformationEvents(bool)

Enables or disables information events for the DOM module.

WithInstanceTTL(TimeSpan?)

Sets the time-to-live (TTL) for DOM instances.

WithModuleId(string)

Sets the module ID for the DOM module.

WithOnCreateScript(string)

Sets the script to be executed when a DOM instance is created.

WithOnDeleteScript(string)

Sets the script to be executed when a DOM instance is deleted.

WithOnUpdateScript(string)

Sets the script to be executed when a DOM instance is updated.

WithTemplateTTL(TimeSpan?)

Sets the time-to-live (TTL) for DOM templates.