RouteAttributeHelper.CreateHandlerDelegate Method

Definition

Overloads

Name Description
CreateHandlerDelegate(AgentApplication, MethodInfo, Type)

Creates a bound delegate of the given delegateType from method, handling both instance and static methods. For instance methods the delegate is bound to app; for static methods no target is bound.

CreateHandlerDelegate<T>(AgentApplication, MethodInfo)

Creates a bound delegate from method, handling both instance and static methods. For instance methods the delegate is bound to app; for static methods no target is bound.

CreateHandlerDelegate(AgentApplication, MethodInfo, Type)

Creates a bound delegate of the given delegateType from method, handling both instance and static methods. For instance methods the delegate is bound to app; for static methods no target is bound.

public static Delegate CreateHandlerDelegate(Microsoft.Agents.Builder.App.AgentApplication app, System.Reflection.MethodInfo method, Type delegateType);
static member CreateHandlerDelegate : Microsoft.Agents.Builder.App.AgentApplication * System.Reflection.MethodInfo * Type -> Delegate
Public Shared Function CreateHandlerDelegate (app As AgentApplication, method As MethodInfo, delegateType As Type) As Delegate

Parameters

method
MethodInfo
delegateType
Type

Returns

Applies to

CreateHandlerDelegate<T>(AgentApplication, MethodInfo)

Creates a bound delegate from method, handling both instance and static methods. For instance methods the delegate is bound to app; for static methods no target is bound.

public static T CreateHandlerDelegate<T>(Microsoft.Agents.Builder.App.AgentApplication app, System.Reflection.MethodInfo method) where T : class, Delegate;
static member CreateHandlerDelegate : Microsoft.Agents.Builder.App.AgentApplication * System.Reflection.MethodInfo -> 'T (requires 'T : null and 'T :> Delegate)
Public Shared Function CreateHandlerDelegate(Of T As {Class, Delegate}) (app As AgentApplication, method As MethodInfo) As T

Type Parameters

T

Parameters

method
MethodInfo

Returns

T

Applies to