public virtual void Init(ExporterConfig config) { _config = config; _registry = Registro.New(ETipoRegistro.CompanyExport); _registry.Nombre = Resources.Labels.COMPANY_EXPORT_REGISTRY; _registry.Observaciones = GetConditions(); InitDestinationPath(); }
public static IExporterMng GetExporter(ExporterConfig config) { switch (config.SourceEntityType) { case ETipoEntidad.OutputDelivery: return(new Exporter <OutputDeliveryExporter>(config)); /*case ETipoEntidad.FacturaEmitida: * return new Exporter<OutputInvoiceExporter>(config);*/ } return(null); }
public Exporter(ExporterConfig config) { _exporter = new T(); _exporter.Init(config); }