using System; using UDDI.Diagnostics; namespace UDDI { /// ******************************************************************** /// public class Application /// -------------------------------------------------------------------- /// /// /// /// ******************************************************************** /// public class Application { private static Application application; private Config config; private Debug debug; /// **************************************************************** /// private Application [constructor] /// ---------------------------------------------------------------- /// /// /// **************************************************************** /// private Application() { config = new Config(); debug = new Debug(); } /// **************************************************************** /// public Current [static] /// ---------------------------------------------------------------- /// /// Returns the current Application instance. /// /// **************************************************************** /// public static Application Current { get { if( null == application ) application = new Application(); return application; } } /// **************************************************************** /// public Config [static] /// ---------------------------------------------------------------- /// /// Returns the Config instance associated with the global /// Application instance. /// /// **************************************************************** /// public static Config Config { get { return Current.config; } } /// **************************************************************** /// public Debug [static] /// ---------------------------------------------------------------- /// /// Returns the Debug instance associated with the global /// Application instance. /// /// **************************************************************** /// public static Debug Debug { get { return Current.debug; } } } }