private static void CreateInstance() { Mutex configMutex = new Mutex(); configMutex.WaitOne(); outMngr = new OutputMngr(); configMutex.ReleaseMutex(); }
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); } }