コード例 #1
0
        private static void CreateInstance()
        {
            Mutex configMutex = new Mutex();

            configMutex.WaitOne();
            outMngr = new OutputMngr();
            configMutex.ReleaseMutex();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            entity     = args[0].Trim();
            ConfigData = (NameValueCollection)ConfigurationSettings.GetConfig("appSettings");
            GetParameters();
            OutputMngr om = OutputMngr.GetInstance();

            om.Entity = entity;      //uw or hmc
            om.GetAccess();
            try
            {
                LoadExpiringPWDataSet();
                ProcessOutput(args[0]);
            }
            catch (Exception ex)
            {
                lm.Write("Program/Main:  " + ex.Message);
            }
            finally
            {
                Environment.Exit(1);
            }
        }