Example #1
0
        /// <summary>
        /// Configures the supplied step. Returns true if the step is enabled. false otherwise.
        /// </summary>
        /// <param name="advice"></param>
        /// <param name="config"></param>
        /// <returns></returns>
        public static bool ConfigureAdvice(ISolidProxyInvocationAdvice advice, ISolidConfigurationScope config)
        {
            var configAction = ConfigFunctions.GetOrAdd(advice.GetType(), GetConfigFunction);

            return(configAction.Invoke(advice, config));
        }
Example #2
0
 /// <summary>
 /// Constructs a new instance
 /// </summary>
 /// <param name="solidScopeType"></param>
 /// <param name="parentScope"></param>
 protected SolidConfigurationScope(SolidScopeType solidScopeType, ISolidConfigurationScope parentScope)
 {
     SolidScopeType = solidScopeType;
     ParentScope    = parentScope;
 }