logo

Class FluentSettings

Provides access to settings in a fluent way.

Inheritance
System.Object
FluentSettings
Namespace: Stylelabs.M.Sdk.Fluent.Wrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentSettings : object

Constructors

FluentSettings(ISettingsClient, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentSettings class.

Declaration
public FluentSettings(ISettingsClient settingsClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
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
public FluentEntity GetSetting(string category, string name)
Parameters
Type Name Description
System.String category

The category to get the setting from.

System.String name

The name of the setting to get.

Returns
Type Description
FluentEntity

GetSettingsForCategory(String)

Gets the settings for the specified category.

Declaration
public IList<FluentEntity> GetSettingsForCategory(string category)
Parameters
Type Name Description
System.String category

The category to get the setting for.

Returns
Type Description
IList<FluentEntity>

Can we improve this article ? Provide feedback