Class FluentSettings
Provides access to settings in a fluent way.
Inheritance
object
FluentSettings
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
Constructors
FluentSettings(ISettingsClient, IEntitiesClient, IEntityLoadConfiguration)
Initializes a new instance of the FluentSettings class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| ISettingsClient | settingsClient |
The ISettingsClient instance. |
| IEntitiesClient | entitiesClient |
The IEntitiesClient instance. |
| IEntityLoadConfiguration | entityLoadConfiguration |
The IEntityLoadConfiguration instance. |
Methods
GetSetting(string, string)
Gets the setting with the specified name from the specified category.
If the category or setting could not be found, null is returned.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | category |
The category to get the setting from. |
| string | name |
The name of the setting to get. |
Returns
| Type | Description |
|---|---|
| FluentEntity |
A FluentEntity. |
GetSettingsForCategory(string)
Gets the settings for the specified category.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | category |
The category to get the setting for. |
Returns
| Type | Description |
|---|---|
| IList<>FluentEntity |
A FluentEntity. |