Class FunctionControllerBase<TFunc, TFuncAttribute, TScriptAttribute>
Function controller
Inheritance
FunctionControllerBase<TFunc, TFuncAttribute, TScriptAttribute>
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Function.Api
Assembly: PayrollEngine.Client.Services.dll
Syntax
public abstract class FunctionControllerBase<TFunc, TFuncAttribute, TScriptAttribute> where TFunc : Function where TFuncAttribute : FunctionAttribute where TScriptAttribute : ScriptAttribute
Type Parameters
| Name | Description |
|---|---|
| TFunc | The function |
| TFuncAttribute | The function attribute |
| TScriptAttribute | The script attribute |
Constructors
View SourceFunctionControllerBase(PayrollHttpClient)
Initializes a new instance of the FunctionControllerBase<TFunc, TFuncAttribute, TScriptAttribute> class
Declaration
protected FunctionControllerBase(PayrollHttpClient httpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| PayrollHttpClient | httpClient | The Payroll http client |
Properties
View SourceFunction
The function attribute
Declaration
protected TFuncAttribute Function { get; }
Property Value
| Type | Description |
|---|---|
| TFuncAttribute |
HttpClient
The Payroll http client
Declaration
public PayrollHttpClient HttpClient { get; }
Property Value
| Type | Description |
|---|---|
| PayrollHttpClient |
Methods
The function method attributes
Declaration
protected IDictionary<TScriptAttribute, MethodInfo> Methods { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<TScriptAttribute, MethodInfo> |
Methods
View SourceGetScriptAttribute(string)
Gets the script method by script key
Declaration
public TScriptAttribute GetScriptAttribute(string scriptKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | scriptKey | The script key |
Returns
| Type | Description |
|---|---|
| TScriptAttribute | The scripting method |
GetScriptMethod(string)
Gets the script method by script key
Declaration
public MethodInfo GetScriptMethod(string scriptKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | scriptKey | The script key |
Returns
| Type | Description |
|---|---|
| MethodInfo | The scripting method |