internal BindingObserver(DataServiceContext context, Func <EntityChangedParams, bool> entityChanged, Func <EntityCollectionChangedParams, bool> collectionChanged) { this.Context = context; this.Context.ChangesSaved += new EventHandler <SaveChangesEventArgs>(this.OnChangesSaved); this.EntityChanged = entityChanged; this.CollectionChanged = collectionChanged; this.bindingGraph = new BindingGraph(this); }
internal BindingObserver(DataServiceContext context, Func <EntityChangedParams, bool> entityChanged, Func <EntityCollectionChangedParams, bool> collectionChanged) { Debug.Assert(context != null, "Must have been validated during DataServiceCollection construction."); this.Context = context; this.Context.ChangesSaved += this.OnChangesSaved; this.EntityChanged = entityChanged; this.CollectionChanged = collectionChanged; this.bindingGraph = new BindingGraph(this); }