Exemple #1
0
        IIntegrationConfigBuilder GetBuilder(IIntegrationConfig config)
        {
            var output = new IntegrationConfigurationBuilder();

            AddBaselineIntegrationConfiguration(output);
            config.Configure(output);
            return(output);
        }
        public IntegrationSender(IIntegrationConfig config)
        {
            Attempts     = 3;
            TakePendents = 1000;

            if (config == null)
            {
                throw new HBIntegrationException("Config not defined.");
            }

            Config = config;
        }
Exemple #3
0
        public static IIntegracaoSapBrfWrapper Get(IIntegrationConfig config)
        {
            IIntegracaoSapBrfWrapper ret = null;

            if (config == null || string.IsNullOrEmpty(config.Name))
            {
                throw new HBIntegrationException("Config not defined.");
            }

            switch (config.Name.ToLower())
            {
            case BRF:
                ret = new IntegracaoSapBrfWrapper(config);
                break;
            }

            return(ret);
        }
Exemple #4
0
 public IntegracaoSapBrfWrapper(IIntegrationConfig config) : base(config)
 {
 }