Ejemplo n.º 1
0
 public Consumer(Configurador parentConfigurador)
 {
     client       = new SVCDocumentosElectronicos.DocumentosElectronicosClient();
     configurador = parentConfigurador;
     configurador.LogWriter.Write(new LogEntry()
     {
         Message = "Instanciando Consumer"
     });
 }
Ejemplo n.º 2
0
 public Producer(Configurador parentConfigurador)
 {
     configurador = parentConfigurador;
     queue        = new MessageQueue(configurador.InitialQueueName);
     client       = new SVCDocumentosElectronicos.DocumentosElectronicosClient();
     configurador.LogWriter.Write(new LogEntry()
     {
         Message = "Instanciando Producer"
     });
 }
Ejemplo n.º 3
0
 public Producer(Logger logger)
 {
     this.server            = ConfigurationManager.AppSettings["Servidor"];
     this.port              = Convert.ToInt16(ConfigurationManager.AppSettings["Puerto"]);
     this.userName          = ConfigurationManager.AppSettings["CuentaCorreo"];
     this.password          = ConfigurationManager.AppSettings["Password"];
     this.userAlias         = ConfigurationManager.AppSettings["CuentaAlias"];
     this.reportBugsName    = ConfigurationManager.AppSettings["CuentaBugsAlias"];
     this.reportBugsAddress = ConfigurationManager.AppSettings["CuentaBugsAddress"];
     this.smtpPort          = Convert.ToInt16(ConfigurationManager.AppSettings["smtpPort"]);
     this.interval          = Convert.ToInt32(ConfigurationManager.AppSettings["IntervalToProduce"]);
     this.logger            = logger;
     sujetoContableClient   = new SVCSujetoContable.SujetoContableClient();
     documentClient         = new SVCDocumentosElectronicos.DocumentosElectronicosClient();
     aTimer = new Timer();
 }
Ejemplo n.º 4
0
 public Consumer(Configurador parentConfigurador)
 {
     client       = new SVCDocumentosElectronicos.DocumentosElectronicosClient();
     configurador = parentConfigurador;
 }
Ejemplo n.º 5
0
 public Producer(Configurador parentconfigurador)
 {
     configurador = parentconfigurador;
     queue        = new MessageQueue(configurador.InitialQueueName);
     client       = new SVCDocumentosElectronicos.DocumentosElectronicosClient();
 }