/[projects]/dao/DaoMqPump2/DaoMqPump2/Transport.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoMqPump2/Transport.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2000 by torben, Mon Jul 8 14:22:33 2013 UTC revision 2001 by torben, Mon Jul 8 14:28:01 2013 UTC
# Line 21  namespace DaoMqPump2 Line 21  namespace DaoMqPump2
21          public static string SQL2MQ = "sql2mq";          public static string SQL2MQ = "sql2mq";
22          public static string MQ2SQL = "mq2sql";          public static string MQ2SQL = "mq2sql";
23    
24          private bool enabled;                  //private bool enabled;        
25    
26          TransportController controller;          TransportController controller;
27    
# Line 55  namespace DaoMqPump2 Line 55  namespace DaoMqPump2
55          public bool Enabled          public bool Enabled
56          {          {
57              get {              get {
58                  return this.enabled;                  return statusData.transportEnabled;
59              }              }
60              set              set
61              {              {
62                  this.enabled = value;                  statusData.transportEnabled = value;
63                  if (value == true)                  if (value == true)
64                  {                  {
65                      this.addLogEntry("Transport enabled");                      this.addLogEntry("Transport enabled");
# Line 85  namespace DaoMqPump2 Line 85  namespace DaoMqPump2
85              this.sql2mqReadQuery = sql2mqReadQuery;              this.sql2mqReadQuery = sql2mqReadQuery;
86              this.sql2mqUpdateQuery = sql2mqUpdateQuery;              this.sql2mqUpdateQuery = sql2mqUpdateQuery;
87    
88              this.enabled = enabled;              statusData.transportEnabled = enabled;
89    
90    
91              statusData.lastrunOk = true;              statusData.lastrunOk = true;
# Line 103  namespace DaoMqPump2 Line 103  namespace DaoMqPump2
103    
104          public void transportMessages()          public void transportMessages()
105          {          {
106              if (enabled == false)              if (statusData.transportEnabled == false)
107                  return;                  return;
108    
109              Console.WriteLine(name + " -> transportMessages() ");              Console.WriteLine(name + " -> transportMessages() ");

Legend:
Removed from v.2000  
changed lines
  Added in v.2001

  ViewVC Help
Powered by ViewVC 1.1.20