public DatabaseGateway(string connectionString) { _connectionString = connectionString; switch (GetVersion()) { case SqlServerVersion.Sql100: _gateway = new ExtendedEventGateway2008(_connectionString); break; } }
public void Start() { try { _continue = true; _gateway = new DatabaseGateway(_connectionString).Get(); _gateway.StartTrace(); } catch (Exception e) { OutputPane.WriteMessageAndActivatePane("CodeCoverage, error starting the trace: {0}", e); } }