public void Configure(string configScript = null, bool updatePackages = false) { if (_disposed) { throw new ObjectDisposedException("Engine"); } try { if(_configurator != null) { throw new InvalidOperationException("This engine has already been configured."); } _configurator = new Configurator(this); _configurator.Configure(configScript, updatePackages); } catch (Exception ex) { Trace.Verbose("Exception: {0}", ex); throw; } }
public void Configure(string configScript = null, bool updatePackages = false, string fileName = null, bool outputScripts = false) { CheckDisposed(); try { if(_configurator != null) { throw new InvalidOperationException("This engine has already been configured."); } _configurator = new Configurator(this, fileName, outputScripts); _configurator.Configure(configScript, updatePackages); } catch (Exception ex) { Trace.Verbose("Exception: {0}", ex); throw; } }