C# Класс Spring.Retry.Classify.Util.MethodInvokerUtils

Utility methods for create MethodInvoker instances.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetMethodInvokerByAttribute ( Type attributeType, object target ) : IMethodInvoker

Create a MethodInvoker from the delegate based on the attributeType. Ensure that the decorated method has a valid set of parameters.

GetMethodInvokerByName ( object targetObject, string methodName, bool paramsRequired ) : IMethodInvoker

Create a IMethodInvoker using the provided method name to search.

GetMethodInvokerForInterface ( Type cls, string methodName, object targetObject ) : IMethodInvoker

Create a IMethodInvoker using the provided interface, and method name from that interface.

GetMethodInvokerForSingleArgument ( object target ) : IMethodInvoker

Create a IMethodInvoker for the delegate from a single public method.

GetParamTypesString ( ) : string

Create a String representation of the array of parameter types.

Описание методов

GetMethodInvokerByAttribute() публичный статический Метод

Create a MethodInvoker from the delegate based on the attributeType. Ensure that the decorated method has a valid set of parameters.
public static GetMethodInvokerByAttribute ( Type attributeType, object target ) : IMethodInvoker
attributeType System.Type The attribute type.
target object The target.
Результат IMethodInvoker

GetMethodInvokerByName() публичный статический Метод

Create a IMethodInvoker using the provided method name to search.
public static GetMethodInvokerByName ( object targetObject, string methodName, bool paramsRequired ) : IMethodInvoker
targetObject object The target object to be invoked.
methodName string The method name of the method to be invoked.
paramsRequired bool Boolean indicating whether the parameters are required. If false, a no args version of the method will be searched for.
Результат IMethodInvoker

GetMethodInvokerForInterface() публичный статический Метод

Create a IMethodInvoker using the provided interface, and method name from that interface.
public static GetMethodInvokerForInterface ( Type cls, string methodName, object targetObject ) : IMethodInvoker
cls System.Type The interface to search for the method named.
methodName string The method name of the method to be invoked.
targetObject object The target object to be invoked.
Результат IMethodInvoker

GetMethodInvokerForSingleArgument() публичный статический Метод

Create a IMethodInvoker for the delegate from a single public method.
public static GetMethodInvokerForSingleArgument ( object target ) : IMethodInvoker
target object The target.
Результат IMethodInvoker

GetParamTypesString() публичный статический Метод

Create a String representation of the array of parameter types.
public static GetParamTypesString ( ) : string
Результат string