Class FluentSettings

Version: 3.4

Provides access to settings in a fluent way.

Inheritance
object
FluentSettings
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentSettings

Constructors

FluentSettings(ISettingsClient, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentSettings class.

Declaration
RequestResponse
public FluentSettings(ISettingsClient settingsClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
TypeNameDescription
ISettingsClientsettingsClient

The ISettingsClient instance.

IEntitiesCliententitiesClient

The IEntitiesClient instance.

IEntityLoadConfigurationentityLoadConfiguration

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
RequestResponse
public FluentEntity GetSetting(string category, string name)
Parameters
TypeNameDescription
stringcategory

The category to get the setting from.

stringname

The name of the setting to get.

Returns
TypeDescription
FluentEntity

A FluentEntity.

GetSettingsForCategory(string)

Gets the settings for the specified category.

Declaration
RequestResponse
public IList<FluentEntity> GetSettingsForCategory(string category)
Parameters
TypeNameDescription
stringcategory

The category to get the setting for.

Returns
TypeDescription
IList<>FluentEntity

A FluentEntity.

Do you have some feedback for us?

If you have suggestions for improving this article,