1. Stylelabs.M.Sdk.Fluent.Wrappers

Class FluentSettings

Provides access to settings in a fluent way.

Inheritance

object

FluentSettings

Namespace: StylelabsStylelabs.MSdkFluentWrappers

Assembly: Stylelabs.M.Sdk.Fluent.dll

Syntax

public class FluentSettings

Constructors

FluentSettings(ISettingsClient, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentSettings class.

Declaration

public FluentSettings(ISettingsClient settingsClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)

Parameters

TypeNameDescription
ISettingsClientsettingsClientThe ISettingsClient instance.
IEntitiesCliententitiesClientThe IEntitiesClient instance.
IEntityLoadConfigurationentityLoadConfigurationThe 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

TypeNameDescription
stringcategoryThe category to get the setting from.
stringnameThe name of the setting to get.

Returns

TypeDescription
FluentEntityA FluentEntity.

GetSettingsForCategory(string)

Gets the settings for the specified category.

Declaration

public IList<FluentEntity> GetSettingsForCategory(string category)

Parameters

TypeNameDescription
stringcategoryThe category to get the setting for.

Returns

TypeDescription
IList<>FluentEntityA FluentEntity.
If you have suggestions for improving this article, let us know!