TableDependency.OnChanged。下面是使用的代码,尝试在onError上显示错误但没有运气
ITableDependency<objecttest> _sqlTableDependency = new ITableDependency<objecttest>;
_sqlTableDependency.OnChanged += TableDependency_Changed;
_sqlTableDependency.OnError += (sender, args) => {
logger.Error($"error is {args.Error.Message}"); };
_sqlTableDependency.Start();