예제 #1
0
 private object CreateExecutionContext()
 {
     try
     {
         return(_contextDescriptor.ContextResolver(_scope));
     }
     catch (Exception e)
     {
         throw new InvalidOperationException($"Context initialization failed: {e.Message}", e);
     }
 }
예제 #2
0
 private static object InstantiateSubStepsContext(ExecutionContextDescriptor contextDescriptor, IDependencyContainer container)
 {
     try
     {
         return(contextDescriptor.ContextResolver(container));
     }
     catch (Exception e)
     {
         throw new InvalidOperationException($"Sub-steps context initialization failed: {e.Message}", e);
     }
 }