예제 #1
0
        public static DiagnosticFileDumper ConfigInstance(string directory)
        {
            if (singleInstance == null)
            {
                singleInstance = new DiagnosticFileDumper(directory);
                thread         = new Thread(() => singleInstance.Run(null));
                thread.Start();
            }

            return(singleInstance);
        }
예제 #2
0
        /**
         * The directory where diagnostic dumps are to be place, null if none should be done.
         *
         * @return The directory where diagnostic dumps are to be place, null if none should be done.
         */

        public DiagnosticFileDumper GetDiagnosticFileDumper()
        {
            if (diagnosticFileDumper != null)
            {
                return(diagnosticFileDumper);
            }

            string dd = sdkProperties.Get(DIAGNOTISTIC_FILE_DIRECTORY);

            if (dd != null)
            {
                diagnosticFileDumper = DiagnosticFileDumper.ConfigInstance(dd);
            }

            return(diagnosticFileDumper);
        }