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(); } }
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(); } }