public bool Validate([NotNull] FlowDescription flowDescription) { Flow = flowDescription.NotNull(); Result.ClearErrors(); foreach (IFlowNode node in flowDescription.Nodes) { node.Accept(this); } PerformGlobalValidation(flowDescription); Flow = null; return(!Result.HasErrors); }
public DefaultHandlersSetter([NotNull] FlowDescription flowDescription) { myFlowDescription = flowDescription.NotNull(); myFaultHandler = flowDescription.DefaultFaultHandler; myCancellationHandler = flowDescription.DefaultCancellationHandler; }