Beispiel #1
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();
     }
 }
Beispiel #2
0
        public AmoServer(AmoType amoType)
        {
            _type = amoType;
            if (amoType == AmoType.AnalysisServices)
            {
                Log.Verbose("{class} {method} {message}","AmoServer","<constructor>","Using Microsoft.AnalysisServices");
                _svr = new Server();
            }
            else
            {
                Log.Verbose("{class} {method} {message}", "AmoServer", "<constructor>", "Using Microsoft.Excel.Amo");
                AmoServer.VoidDelegate f = delegate
                {
                    _xlSvr = new ExcelAmo.Microsoft.AnalysisServices.Server();
                };
                f();

            }
        }