Skip to content

Instantly share code, notes, and snippets.

@RolandPheasant
Created May 29, 2015 08:52
Show Gist options
  • Save RolandPheasant/fad82eb8f4d3937db44d to your computer and use it in GitHub Desktop.
Save RolandPheasant/fad82eb8f4d3937db44d to your computer and use it in GitHub Desktop.
CompositeDataSource required to accept pivot table as an argument
//Change the SubscribeMany line
var pivotLoader = _pivotTables.Connect()
.SubscribeMany(pivot => pivot.Data.Connect().Synchronize(_updateLocker).Subscribe(changes => PivotDataHasUpdated(pivot,changes)))
.Subscribe();
//Change the PivotDataHasUpdated signature
public void PivotDataHasUpdated(IDataSource pivotTable, IChangeSet<Record, Guid> changes)
{
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment