Method ForDelegate
ForDelegate<T>(Func<IComponentContext, IEnumerable<Parameter>, T>)
public static IRegistrationBuilder<T, SimpleActivatorData, SingleRegistrationStyle> ForDelegate<T>(Func<IComponentContext, IEnumerable<Parameter>, T> @delegate) where T : notnull
Parameters
delegateFunc<IComponentContext, IEnumerable<Parameter>, T>
Returns
Type Parameters
T
ForDelegate(Type, Func<IComponentContext, IEnumerable<Parameter>, object>)
public static IRegistrationBuilder<object, SimpleActivatorData, SingleRegistrationStyle> ForDelegate(Type limitType, Func<IComponentContext, IEnumerable<Parameter>, object> @delegate)
Parameters
limitTypeTypedelegateFunc<IComponentContext, IEnumerable<Parameter>, object>