public IPatchApplier Create(Patch action)
        {
            IPatchApplier processor;

            var patch = action as Schema.Patch;

            if (patch != null)
            {
                processor =
                    new Schema.PatchApplier(
                        schemaPatch: patch,
                        executer: _executer,
                        loader: _loader,
                        logger: _logger);
            }
            else
            {
                processor =
                    new PatchApplier(
                        action: action,
                        executer: _executer,
                        loader: _loader,
                        logger: _logger);
            }

            return processor;
        }
Exemplo n.º 2
0
        public PatchApplier(
			Patch action,
			Common.Execution.IExecuter executer,
			Common.Loading.ILoader loader,
			Common.Logging.ILogger logger)
        {
            _executer = executer;
            _loader = loader;
            _logger = logger;
            _action = action;
        }