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