SettingService Class
Assembly: PTS.Modules.IdentitySettingExtension.dll
Syntax
public class SettingService : SingleRepositoryService<Setting>, IServiceProviderAccessor, ISettingService, ISeedWork<ISettingService>, ISeedWork
Inheritance
System.Object
SettingService
Constructors
SettingService(IUnitOfWork)
Declaration
public SettingService(IUnitOfWork unitOfWork)
Parameters
Methods
Get(Identity, Enum)
Declaration
public Setting Get(Identity entity, Enum key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.Enum |
key |
|
Returns
Get(Identity, String)
Declaration
public virtual Setting Get(Identity entity, string key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.String |
key |
|
Returns
GetAsync(Identity, Enum)
Declaration
public virtual Task<Setting> GetAsync(Identity entity, Enum key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.Enum |
key |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Setting> |
|
GetAsync(Identity, String)
Declaration
public virtual Task<Setting> GetAsync(Identity entity, string key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.String |
key |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Setting> |
|
GetValue(Identity, Enum)
Declaration
public virtual string GetValue(Identity entity, Enum key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.Enum |
key |
|
Returns
Type |
Description |
System.String |
|
GetValue(Identity, String)
Declaration
public virtual string GetValue(Identity entity, string key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.String |
key |
|
Returns
Type |
Description |
System.String |
|
GetValueAsync(Identity, Enum)
Declaration
public virtual Task<string> GetValueAsync(Identity entity, Enum key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.Enum |
key |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
GetValueAsync(Identity, String)
Declaration
public virtual Task<string> GetValueAsync(Identity entity, string key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.String |
key |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
SetValue(Identity, Enum, String, SettingType)
Declaration
public virtual Setting SetValue(Identity entity, Enum key, string value, SettingType type)
Parameters
Returns
SetValue(Identity, String, String, SettingType)
Declaration
public virtual Setting SetValue(Identity entity, string key, string value, SettingType type)
Parameters
Returns
SetValueAsync(Identity, Enum, String, SettingType)
Declaration
public virtual Task<Setting> SetValueAsync(Identity entity, Enum key, string value, SettingType type)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Setting> |
|
SetValueAsync(Identity, String, String, SettingType)
Declaration
public virtual Task<Setting> SetValueAsync(Identity entity, string key, string value, SettingType type)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Setting> |
|
UnsetValue(Identity, Enum)
Declaration
public virtual void UnsetValue(Identity entity, Enum key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.Enum |
key |
|
UnsetValue(Identity, String)
Declaration
public virtual void UnsetValue(Identity entity, string key)
Parameters
Type |
Name |
Description |
Identity |
entity |
|
System.String |
key |
|
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Extension Methods