Пример #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();
            }
        }
Пример #2
0
 protected override string GetStateInstanceName(MethodProcessableComponent method)
 {
     return("ECSFlowInjectionState");
 }
Пример #3
0
 protected override MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method)
 {
     return(MethodInjectionPlace.InCatchBlock);
 }
Пример #4
0
 public MethodCodeInjectingCodeProviderArgument(MethodProcessableComponent method, FieldDefinition stateField)
 {
     Method     = method;
     StateField = stateField;
 }
Пример #5
0
 protected abstract string GetStateInstanceName(MethodProcessableComponent method);
Пример #6
0
 protected abstract MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method);