private void dependency_OnChange(object sender, SqlNotificationEventArgs e) { SqlNotificationInfo s = e.Info; List <Scope> listScopes = ScopeRepository.GetAllCompletedScopes(); foreach (Scope obj in listScopes) { ScopeHub.Show(obj); } }