Exemple #1
0
        public override IEnumerable <Variable> FindVariables(IMethodVariables chain)
        {
            _one = chain.FindVariableByName(typeof(int), "one");
            yield return(_one);

            _two = chain.FindVariableByName(typeof(int), "two");
            yield return(_two);
        }
Exemple #2
0
        public Variable Resolve(IMethodVariables variables)
        {
            Variable = _name.IsEmpty()
                ? variables.FindVariable(_variableType)
                : variables.FindVariableByName(_variableType, _name);

            return(Variable);
        }
Exemple #3
0
 public Variable FindVariableByName(Type dependency, string name)
 {
     return(_inner.FindVariableByName(dependency, name));
 }
Exemple #4
0
 public override IEnumerable <Variable> FindVariables(IMethodVariables chain)
 {
     Segments = chain.FindVariableByName(typeof(string[]), RoutingFrames.Segments);
     yield return(Segments);
 }
 public override IEnumerable <Variable> FindVariables(IMethodVariables chain)
 {
     Resolved = chain.FindVariableByName(_dependency, _name);
     yield return(Resolved);
 }
Exemple #6
0
 internal Variable FindVariable(IMethodVariables variables)
 {
     return(_variableName.IsNotEmpty()
         ? variables.FindVariableByName(_variableType, _variableName)
         : variables.FindVariable(_variableType));
 }