Exemplo n.º 1
0
 /// <summary>
 /// Called when [connect to sonar].
 /// </summary>
 public void OnConnectToSonar()
 {
     foreach (IModelBase model in modelPool)
     {
         try
         {
             model.OnConnectToSonar(AuthtenticationHelper.AuthToken, this.model.AvailableProjects, this.pluginManager.IssueTrackerPlugins);
         }
         catch (Exception ex)
         {
             this.logger.ReportMessage(new Message {
                 Id = "Association Model", Data = "Exception for model while connecting : " + model.ToString()
             });
             this.logger.ReportException(ex);
         }
     }
 }