/[projects]/dao/DaoMqPump2/DaoCommon/MQHelper.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoCommon/MQHelper.cs

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

revision 2174 by torben, Sat May 17 10:53:58 2014 UTC revision 2175 by torben, Mon May 19 11:59:45 2014 UTC
# Line 7  namespace DaoCommon Line 7  namespace DaoCommon
7  {  {
8      public class MQHelper      public class MQHelper
9      {      {
10            public static MQQueue openQueueHelper(string queueName, MQQueueManager mqMgr, int openOptions)
11            {
12                try
13                {
14                    return mqMgr.AccessQueue(queueName, openOptions);
15                } catch (MQException e) {
16                    throw new Exception("Error opening queue " + queueName + ": " + e.Message, e);
17                }
18            }
19    
20          public static void closeQueueSafe(MQQueue queue)          public static void closeQueueSafe(MQQueue queue)
21          {          {
22              if (queue != null && queue.IsOpen)              if (queue != null && queue.IsOpen)

Legend:
Removed from v.2174  
changed lines
  Added in v.2175

  ViewVC Help
Powered by ViewVC 1.1.20