Status change

To receive notifications about status change for TableDependency use the following code:

var tableDependency = new SqlTableDependency<Product>(connectionString);
tableDependency.OnChanged += this.TableDependency_Changed;
tableDependency.OnStatusChanged += this.TableDependency_OnStatusChanged;
tableDependency.Start();
...
private static void TableDependency_OnStatusChanged(object sender, StatusChangedEventArgs e)
{
    Console.WriteLine(@"Status: " + e.Status);
}

Last edited Jul 3, 2016 at 8:23 PM by delbianco, version 2