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(); } }
protected override string GetStateInstanceName(MethodProcessableComponent method) { return("ECSFlowInjectionState"); }
protected override MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method) { return(MethodInjectionPlace.InCatchBlock); }
public MethodCodeInjectingCodeProviderArgument(MethodProcessableComponent method, FieldDefinition stateField) { Method = method; StateField = stateField; }
protected abstract string GetStateInstanceName(MethodProcessableComponent method);
protected abstract MethodInjectionPlace GetInjectionPlace(MethodProcessableComponent method);