public DaxStudioHost(IEventAggregator eventAggregator, Application app) { _app = app; Port = _app.Args().Port; if (Port > 0) { Proxy = new DaxStudio.UI.Model.ProxyPowerPivot(eventAggregator, Port); } else { Proxy = new DaxStudio.UI.Model.ProxyStandalone(); } }
public DaxStudioHost(IEventAggregator eventAggregator, Application app) { _eventAggregator = eventAggregator; _app = app; Port = _app.Args().Port; if (Port > 0) { Proxy = new DaxStudio.UI.Model.ProxyPowerPivot(_eventAggregator, Port); } else { Proxy = new DaxStudio.UI.Model.ProxyStandalone(); } //string[] args = Environment.GetCommandLineArgs(); //if (args.Length > 1) //{ // int.TryParse(args[1], out _port); //} //if (_port > 0) //{ // Log.Debug("{class} {method} {message} {port}", "DaxStudioHost", "ctor", "Constructing ProxyPowerPivot", _port); // _proxy = new DaxStudio.UI.Model.ProxyPowerPivot(_eventAggregator, _port); //} //else //{ // // pass along commandline to UI // Log.Debug("{class} {method} {message}", "DaxStudioHost", "ctor", "constructing ProxyStandalone"); // if (args.Length > 1) { // if (args[1].ToLower() != "-log" ) _commandLineFileName = args[1]; // } // _proxy = new DaxStudio.UI.Model.ProxyStandalone(); //} }