# Class DefaultSettingsSource OptimaJet.Workflow.Core.Runtime.Settings.DefaultSettingsSource Represents the default implementation of [IServerSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/IServerSettingsSource-T/). It loads and persists settings of type `T` from runtime global storage. Namespace: [OptimaJet.Workflow.Core.Runtime.Settings](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/) ```csharp public class DefaultSettingsSource : IServerSettingsSource where T : new() ``` ## Type Hierarchy - DefaultSettingsSource Current type - [DefaultMultiServerSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/DefaultMultiServerSettingsSource/) - [DefaultSingleServerSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/DefaultSingleServerSettingsSource/) - Implemented interfaces - [IServerSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/IServerSettingsSource-T/) ## Constructors `public DefaultSettingsSource(WorkflowRuntime runtime, string settingsParameterName, string settingsParameterType)` Initializes a new instance of the [DefaultSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/DefaultSettingsSource-T/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The runtime used to access persistence and settings values. | | `settingsParameterName` | `String` | The name of the global persistence parameter. | | `settingsParameterType` | `String` | The type discriminator used for global settings storage. | ## Methods `public Task GetSettingsAsync()` Retrieves settings from the persistence provider. ### Returns | Type | Description | | --- | --- | | `Task` | A task whose result is the loaded settings, or a new `T` instance when the provider returns no value. | ### Remarks The operation is retried using the runtime's persistence provider retry settings. `public Task SaveSettingsAsync(T settings)` Saves settings to the persistence provider. ### Parameters | Name | Type | Description | | --- | --- | --- | | `settings` | `{T}` | The settings object to persist. | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous DefaultMultiServerSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/DefaultMultiServerSettingsSource/) [Next DefaultSingleServerSettingsSource](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.Settings/DefaultSingleServerSettingsSource/)