This project is read-only.

Get errors

In order to receive errors, add an handler for the OnError event:

var tableDependency = new SqlTableDependency<Product>(connectionString);
tableDependency.OnChanged += this.TableDependency_Changed;
tableDependency.OnError += this.TableDependency_OnError;
private void TableDependency_OnError(object sender, ErrorEventArgs e)
    throw e.Error;

The Error property in ErrorEventArgs contains the exception coming from TableDependency.

Last edited Nov 14, 2015 at 8:28 PM by delbianco, version 2