Example #1
0
        /// <summary>
        /// This is a multi threaded singleton for the class RMQ_Sender.
        /// </summary>
        /// <returns>_instance</returns>
        public static RMQ_Sender GetInstance()
        {
            if (_instance == null)
            {
                lock (syncRoot)
                {
                    if (_instance == null)
                    {
                        _instance = new RMQ_Sender();
                    }
                }
            }

            return(_instance);
        }
Example #2
0
 /// <summary>
 /// This is the constructor for the class RMQ_User.
 /// </summary>
 private RMQ_User()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }
Example #3
0
 /// <summary>
 /// This is the constructor for the class RMQ_Product.
 /// </summary>
 private RMQ_Product()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }
Example #4
0
 /// <summary>
 /// This is the constructor for the class RMQ_OrderDetail.
 /// </summary>
 private RMQ_OrderDetail()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }
Example #5
0
 /// <summary>
 /// This is the constructor for the class RMQ_SpecialCalls.
 /// </summary>
 private RMQ_SpecialCalls()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }