Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public DefaultHandlersSetter([NotNull] FlowDescription flowDescription)
 {
     myFlowDescription     = flowDescription.NotNull();
     myFaultHandler        = flowDescription.DefaultFaultHandler;
     myCancellationHandler = flowDescription.DefaultCancellationHandler;
 }