SettingService.Get Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

Get(String, Object) Gets a setting value from the repository.
Get(String, T) Gets a setting value from the repository.
Get() Get settings from the repository.

Get(String, Object)

Gets a setting value from the repository.

public static object Get(string key, object defaultValue = null)

Parameters

key
System.String
defaultValue
System.Object

Returns

System.Object

Returns the value of the setting.

Get(String, T)

Gets a setting value from the repository.

public static T Get(string key, T defaultValue = null)

Parameters

key
System.String
defaultValue
{T}

Returns

System.Object

Returns the value of the setting.

Get()

Get settings from the repository.

public static TSettings Get()
    where TSettings : class, ISettings

Returns

System.Object

Returns an object implementing the interface.