public static BaseMqHelp GetMqHelpInstance() { switch (ConfigurationManager.AppSettings["MQType"]) { case "ActiveMQ": return(ActiveMqHelp.CreateInstance()); default: return(null); } }
public static ActiveMqHelp CreateInstance() { if (_instance == null) { lock (_lockHelper) { if (_instance == null) { _instance = new ActiveMqHelp(); } } } return(_instance); }