public DynamicParametersDescriptor(DynamicParametersWithContextResolveDelegate resolve) { this.resolve = resolve; }
/// <summary> /// Allows custom dependencies to by defined dynamically with releasing capability. /// </summary> /// <param name = "resolve">The delegate used for providing dynamic parameters.</param> /// <returns></returns> /// <remarks> /// Use <see cref = "CreationContext" /> when resolving components from <see cref = "IKernel" /> in order to detect cycles. /// </remarks> public ComponentRegistration <TService> DynamicParameters(DynamicParametersWithContextResolveDelegate resolve) { AddDescriptor(new DynamicParametersDescriptor(resolve)); return(this); }
public DynamicParametersDescriptor(DynamicParametersWithContextResolveDelegate resolve) { this.resolve = resolve; }