示例#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);
        }
示例#2
0
 /// <summary>
 /// This is the constructor for the class RMQ_User.
 /// </summary>
 private RMQ_User()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }
示例#3
0
 /// <summary>
 /// This is the constructor for the class RMQ_Product.
 /// </summary>
 private RMQ_Product()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }
示例#4
0
 /// <summary>
 /// This is the constructor for the class RMQ_OrderDetail.
 /// </summary>
 private RMQ_OrderDetail()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }
示例#5
0
 /// <summary>
 /// This is the constructor for the class RMQ_SpecialCalls.
 /// </summary>
 private RMQ_SpecialCalls()
 {
     rmq_sender = RMQ_Sender.GetInstance();
 }