Show / Hide Table of Contents

Class FunctionControllerBase<TFunc, TFuncAttribute, TScriptAttribute>

Function controller

Inheritance
object
FunctionControllerBase<TFunc, TFuncAttribute, TScriptAttribute>
PayrollFunctionController<TFunc, TFuncAttribute, TScriptAttribute>
ReportFunctionController<TFunc, TFuncAttribute, TScriptAttribute>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 Source

FunctionControllerBase(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 Source

Function

The function attribute

Declaration
protected TFuncAttribute Function { get; }
Property Value
Type Description
TFuncAttribute
View Source

HttpClient

The Payroll http client

Declaration
public PayrollHttpClient HttpClient { get; }
Property Value
Type Description
PayrollHttpClient
View Source

Methods

The function method attributes

Declaration
protected IDictionary<TScriptAttribute, MethodInfo> Methods { get; }
Property Value
Type Description
IDictionary<TScriptAttribute, MethodInfo>

Methods

View Source

GetScriptAttribute(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

View Source

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

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
  • View Source
☀
☾
Back to top Generated by DocFX