Example #1
0
 public HandlerBuilder <T> IocService(string name)
 {
     IocName         = name;
     FullClassName   = string.Empty;
     StepHandlerType = StepHandlerTypeEnum.IoC;
     return(this);
 }
Example #2
0
 public HandlerBuilder <T> Service(string fullClassName)
 {
     IocName         = string.Empty;
     FullClassName   = fullClassName;
     StepHandlerType = StepHandlerTypeEnum.Service;
     return(this);
 }
Example #3
0
 public ScriptBuilder <HandlerBuilder <T> > Script()
 {
     if (ScriptBuilder == null)
     {
         ScriptBuilder = new ScriptBuilder <HandlerBuilder <T> >(this);
     }
     StepHandlerType = StepHandlerTypeEnum.Script;
     return(ScriptBuilder);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StepHandlerDefinition"/> class.
 /// </summary>
 /// <param name="stepHandlerType">Type of the step handler.</param>
 /// <param name="script">The script.</param>
 /// <param name="iocName">Name of the ioc.</param>
 /// <param name="classFullName">Full name of the class.</param>
 public StepHandlerDefinition(StepHandlerTypeEnum stepHandlerType,
                              ScriptDefinition script,
                              string iocName,
                              string classFullName)
 {
     StepHandlerType = stepHandlerType;
     Script          = script;
     IocName         = iocName;
     ClassFullName   = classFullName;
 }
Example #5
0
 public HandlerBuilder(T parent)
 {
     _parent         = parent;
     StepHandlerType = StepHandlerTypeEnum.None;
 }