Ejemplo n.º 1
0
        public override int Execute()
        {
            if (!TryParseCommonArgs(Store, out var flowContext))
            {
                return(1);
            }

            Console.WriteLine($"Fetching {Tables} to {flowContext.LocalStore.Location}");

            var flow = new FetchFlow(flowContext);

            return(flow.TryExecute() ? 0 : 1);
        }
Ejemplo n.º 2
0
        public bool TryExecute()
        {
            var fetchFlow = new FetchFlow(_context);

            if (!fetchFlow.TryExecute())
            {
                return(false);
            }

            var mergeFlow = new MergeFlow(_context);

            if (!mergeFlow.TryExecute())
            {
                return(false);
            }

            return(true);
        }