Ejemplo n.º 1
0
 public static void Init()
 {
     bool connected = false;
     while (!connected)
     {
         try
         {
             DepMan = new SqlDependencyManager();
             connected = true;
         }
         catch (Exception)
         {
             // this way we don't have to wait until the next recycle or restart
             System.Threading.Thread.Sleep(10000);
         }
     }
 }
Ejemplo n.º 2
0
    public static void Init()
    {
        bool connected = false;

        while (!connected)
        {
            try
            {
                DepMan    = new SqlDependencyManager();
                connected = true;
            }
            catch (Exception)
            {
                // this way we don't have to wait until the next recycle or restart
                System.Threading.Thread.Sleep(10000);
            }
        }
    }