/// <summary> /// Get an activation expression for this strategy /// </summary> /// <param name="scope"></param> /// <param name="request"></param> /// <param name="lifestyle"></param> /// <returns></returns> public IActivationExpressionResult GetDecoratorActivationExpression(IInjectionScope scope, IActivationExpressionRequest request, ICompiledLifestyle lifestyle) { var activationType = request.ActivationType; var closedType = ReflectionHelper.CreateClosedExportTypeFromRequestingType(ActivationType, activationType); var activation = GetActivationConfiguration(closedType); return(_builder.GetActivationExpression(scope, request, activation, lifestyle)); }
/// <summary> /// Get an activation expression for this strategy /// </summary> /// <param name="scope"></param> /// <param name="request"></param> /// <param name="lifestyle"></param> /// <returns></returns> public IActivationExpressionResult GetDecoratorActivationExpression(IInjectionScope scope, IActivationExpressionRequest request, ICompiledLifestyle lifestyle) { return(_builder.GetActivationExpression(scope, request, ActivationConfiguration, lifestyle)); }