/// <summary> /// FOR TESTING ONLY! /// </summary> /// <param name="pluginType"></param> /// <param name="instance"></param> /// <param name="inner"></param> /// <param name="interceptionPlan"></param> public BuildPlan(Type pluginType, Instance instance, IDependencySource inner, IInterceptionPlan interceptionPlan) { PluginType = pluginType; Instance = instance; Inner = inner; _interceptionPlan = interceptionPlan; }
/// <summary> /// FOR TESTING ONLY! /// </summary> /// <param name="pluginType"></param> /// <param name="instance"></param> /// <param name="inner"></param> /// <param name="interceptionPlan"></param> public BuildPlan(Type pluginType, Instance instance, IDependencySource inner, IInterceptionPlan interceptionPlan) { _pluginType = pluginType; _instance = instance; _inner = inner; _interceptionPlan = interceptionPlan; }
public BuildPlan(Type pluginType, Instance instance, IDependencySource inner, Policies policies, IEnumerable<IInterceptor> interceptors) { _pluginType = pluginType; _instance = instance; _inner = inner; if (interceptors.Any()) { _interceptionPlan = new InterceptionPlan(pluginType, _inner, policies, interceptors); } var @delegate = ToDelegate(); _func = @delegate as Func<IBuildSession, IContext, object>; }
public BuildPlan(Type pluginType, Instance instance, IDependencySource inner, Policies policies, IEnumerable <IInterceptor> interceptors) { PluginType = pluginType; Instance = instance; Inner = inner; if (interceptors.Any()) { _interceptionPlan = new InterceptionPlan(pluginType, Inner, policies, interceptors); } var @delegate = ToDelegate(); _func = @delegate as Func <IBuildSession, IContext, object>; }