Exemple #1
0
 public void Connect(string connectionString)
 {
     if (_type == AmoType.AnalysisServices)
     {
         _svr.Connect(connectionString);
     }
     else
     {
         AmoServer.VoidDelegate f = delegate
         {
             _xlSvr.Connect(connectionString);
         };
         f();
     }
 }
Exemple #2
0
 public AmoServer(AmoType amoType)
 {
     _type = amoType;
     if (amoType == AmoType.AnalysisServices)
     {
         Log.Debug("{class} {method} {message}", "AmoServer", "<constructor>", "Using Microsoft.AnalysisServices");
         _svr = new Microsoft.AnalysisServices.Server();
     }
     else
     {
         Log.Debug("{class} {method} {message}", "AmoServer", "<constructor>", "Using Microsoft.Excel.Amo");
         AmoServer.VoidDelegate f = delegate
         {
             _xlSvr = new ExcelAmo.Microsoft.AnalysisServices.Server();
         };
         f();
     }
 }