Interface IAttributeService<TContext>
Service with attribute support
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IAttributeService<in TContext> where TContext : IServiceContext
Type Parameters
| Name | Description |
|---|---|
| TContext |
Methods
DeleteAttributeAsync(TContext, int, string)
Delete object attribute
Declaration
Task DeleteAttributeAsync(TContext context, int objectId, string attributeName)
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context | The service context |
| int | objectId | The object id |
| string | attributeName | The attribute name |
Returns
| Type | Description |
|---|---|
| Task |
GetAttributeAsync(TContext, int, string)
Get object attribute
Declaration
Task<string> GetAttributeAsync(TContext context, int objectId, string attributeName)
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context | The service context |
| int | objectId | The object id |
| string | attributeName | The attribute name |
Returns
| Type | Description |
|---|---|
| Task<string> | The attribute value |
SetAttributeAsync(TContext, int, string, string)
Set object attribute
Declaration
Task SetAttributeAsync(TContext context, int objectId, string attributeName, string attributeValue)
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context | The service context |
| int | objectId | The object id |
| string | attributeName | The attribute name |
| string | attributeValue | The attribute value |
Returns
| Type | Description |
|---|---|
| Task |