Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractiveExecutionInitialization" /> class.
 /// </summary>
 /// <param name="interactiveExecutionBehavior">Customization of interactive execution.</param>
 /// <param name="cacheInvalidator">Cache invalidator that will be used to create simple cache for creating interactive execution.</param>
 public InteractiveExecutionInitialization(InteractiveExecutionBehavior interactiveExecutionBehavior, CacheInvalidator cacheInvalidator = null)
 {
     InteractiveExecutionBehavior = interactiveExecutionBehavior;
     if (cacheInvalidator != null)
     {
         InteractiveExecutionCache = cacheInvalidator.CreateSimpleCache(CreateInteractiveExecution);
     }
     else
     {
         InteractiveExecutionCache = SimpleCache.Create(CreateInteractiveExecution);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractiveExecution"/> class.
 /// </summary>
 /// <param name="behavior">Customization of interactive execution.</param>
 public InteractiveExecution(InteractiveExecutionBehavior behavior)
 {
     Behavior = behavior;
     Initialize();
 }