コード例 #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);