Ejemplo n.º 1
0
 public void Handle(DocumentConnectionUpdateEvent message)
 {
     if (message != null)
     {
         if (message.Connection != null)
         {
             ServerName = message.Connection.IsPowerPivot?"<Power Pivot>": message.Connection.ServerName;
             Spid       = message.Connection.Spid.ToString(CultureInfo.InvariantCulture);
         }
         else
         {
             ServerName = "";
             Spid       = "";
         }
     }
 }
Ejemplo n.º 2
0
 public void Handle(DocumentConnectionUpdateEvent message)
 {
     RefreshConnectionDetails(message.Connection, message.Connection.SelectedDatabase);
 }