Ejemplo n.º 1
0
        protected override MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method)
        {
            var name = method.Name;

            if (name.StartsWith(MethodInjectionTestCodeProvider.InjectAtBeginingPrefix))
            {
                return(MethodInjectionPlace.Begining);
            }
            else if (name.StartsWith(MethodInjectionTestCodeProvider.InjectOnExitPrefix))
            {
                return(MethodInjectionPlace.Exit);
            }
            else
            {
                throw new InvalidOperationException();
            }
        }
Ejemplo n.º 2
0
 protected override string GetStateInstanceName(MethodProcessableComponent method)
 {
     return("ECSFlowInjectionState");
 }
Ejemplo n.º 3
0
 protected override MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method)
 {
     return(MethodInjectionPlace.InCatchBlock);
 }
Ejemplo n.º 4
0
 public MethodCodeInjectingCodeProviderArgument(MethodProcessableComponent method, FieldDefinition stateField)
 {
     Method     = method;
     StateField = stateField;
 }
Ejemplo n.º 5
0
 protected abstract string GetStateInstanceName(MethodProcessableComponent method);
Ejemplo n.º 6
0
 protected abstract MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method);