/// <summary> /// Comstructor for the class RMQ_Receiver /// </summary> private RMQ_Receiver() { this.host_name = "localhost"; this.username = "******"; this.password = "******"; this.virtuel_host = "Task_Queue"; this.requested_heartbeat = 30; this.automatic_recovery = true; this.network_recovery_interval = new TimeSpan(0, 0, 5); this.port = 5672; this.queue = "Order_Handler"; this.durable = true; this.exclusive = false; this.auto_delete = false; this.arguments = null; this.prefetch_size = 0; this.prefetch_count = 1; this.global = false; this.multiple = false; this.auto_acknowledge = false; this.rmq_order = RMQ_Order.GetInstance(); this.rmq_orderdetail = RMQ_OrderDetail.GetInstance(); this.rmq_product = RMQ_Product.GetInstance(); this.rmq_specialcalls = RMQ_SpecialCalls.GetInstance(); this.rmq_user = RMQ_User.GetInstance(); this.rmq_userproduct = RMQ_UserProduct.GetInstance(); }
/// <summary> /// This is a multi threaded singleton for the class RMQ_User. /// </summary> /// <returns>_instance</returns> public static RMQ_User GetInstance() { if (_instance == null) { lock (syncRoot) { if (_instance == null) { _instance = new RMQ_User(); } } } return(_instance); }