public UDC_Client(String myUniqueString, Dictionary <string, object> myParameters = null) { Int32 WaitUpFront = 1 * 60 * 1000; // 1 minute Int32 UpdateInterval = 30 * 60 * 1000; // 30 minutes try { if (myParameters != null) { if (myParameters.ContainsKey("UDCWaitUpfrontTime")) { WaitUpFront = (Int32)myParameters["UDCWaitUpfrontTime"]; } if (myParameters.ContainsKey("UDCUpdateInterval")) { UpdateInterval = (Int32)myParameters["UDCUpdateInterval"]; } } } catch (Exception) // eat all exceptions... { } // start up the thread... UDCClientThreadInstance = new UDC_Client_Thread(WaitUpFront, UpdateInterval); UDCClientThread = new Thread(new ThreadStart(UDCClientThreadInstance.Run)); UDCClientThread.Start(); }
public UDC_Client(String myUniqueString, Dictionary<string, object> myParameters = null) { Int32 WaitUpFront = 1 * 60 * 1000; // 1 minute Int32 UpdateInterval = 30 * 60 * 1000; // 30 minutes try { if (myParameters != null) { if (myParameters.ContainsKey("UDCWaitUpfrontTime")) { WaitUpFront = (Int32)myParameters["UDCWaitUpfrontTime"]; } if (myParameters.ContainsKey("UDCUpdateInterval")) { UpdateInterval = (Int32)myParameters["UDCUpdateInterval"]; } } } catch (Exception) // eat all exceptions... { } // start up the thread... UDCClientThreadInstance = new UDC_Client_Thread(WaitUpFront, UpdateInterval); UDCClientThread = new Thread(new ThreadStart(UDCClientThreadInstance.Run)); UDCClientThread.Start(); }