Example #1
0
 private void StateServerReadyCheck(StateServerService stateServer)
 {
     try
     {
         stateServer.HelloWorld();
     }
     catch (WebException webException)
     {
         if (webException.Status == WebExceptionStatus.Timeout)
         {
             AppDebug.LogEvent("[DealingConsole] Application_Start", webException.ToString(), System.Diagnostics.EventLogEntryType.Error);
             Thread.Sleep(TimeSpan.FromSeconds(5));
             this.StateServerReadyCheck(stateServer);
         }
     }
 }
Example #2
0
 private void StateServerReadyCheck(StateServerService stateServer)
 {
     try
     {
         Token token = new Token();
         token.AppType = AppType.TradingConsoleSilverLight;
         stateServer.Register(token, SettingManager.Default.CommandUrl);
         stateServer.HelloWorld();
     }
     catch (WebException webException)
     {
         if (webException.Status == WebExceptionStatus.Timeout)
         {
             _Logger.Error(webException);
             Thread.Sleep(TimeSpan.FromSeconds(5));
             this.StateServerReadyCheck(stateServer);
         }
     }
 }
Example #3
0
 private void StateServerReadyCheck(StateServerService stateServer)
 {
     try
     {
         Token token = new Token();
         token.AppType=AppType.TradingConsoleSilverLight;
         stateServer.Register(token, SettingManager.Default.CommandUrl);
         stateServer.HelloWorld();
     }
     catch (WebException webException)
     {
         if (webException.Status == WebExceptionStatus.Timeout)
         {
             _Logger.Error(webException);
             Thread.Sleep(TimeSpan.FromSeconds(5));
             this.StateServerReadyCheck(stateServer);
         }
     }
 }
 private void StateServerReadyCheck(StateServerService stateServer)
 {
     try
     {
         stateServer.HelloWorld();
     }
     catch (WebException webException)
     {
         if (webException.Status == WebExceptionStatus.Timeout)
         {
             AppDebug.LogEvent("[DealingConsole] Application_Start", webException.ToString(), System.Diagnostics.EventLogEntryType.Error);
             Thread.Sleep(TimeSpan.FromSeconds(5));
             this.StateServerReadyCheck(stateServer);
         }
     }
 }
Example #5
0
 private void StateServerReadyCheck(StateServerService stateServer)
 {
     try
     {
         Token token = new Token();
         token.AppType=AppType.TradingConsoleSilverLight;
         stateServer.Register(token, SettingManager.Default.CommandUrl);
         stateServer.HelloWorld();
     }
     catch (WebException webException)
     {
         if (webException.Status == WebExceptionStatus.Timeout)
         {
             AppDebug.LogEvent("[TradingConsole] Application_Start", webException.ToString(), System.Diagnostics.EventLogEntryType.Error);
             Thread.Sleep(TimeSpan.FromSeconds(5));
             this.StateServerReadyCheck(stateServer);
         }
     }
 }