private object CreateExecutionContext() { try { return(_contextDescriptor.ContextResolver(_scope)); } catch (Exception e) { throw new InvalidOperationException($"Context initialization failed: {e.Message}", e); } }
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); } }