Sync101 with Custom Filtering

Shows how to track custom filters and how to use a standard custom provider to send changes from a filter-tracking replica to two different filtered replicas.

C# (58.2 KB)
 
 
 
 
 
(0)
1,322 times
Add to favorites
5/13/2011
E-mail Twitter del.icio.us Digg Facebook
using System;



namespace CustomFilterSyncSample
{
    public class NullType : IDataItemOperations<Null>
    {
        public NullType(ushort changeUnitCount)
        {
            _changeUnitCount = changeUnitCount;
        }

        public ushort ChangeUnitCount
        {
            get
            {
                return _changeUnitCount;
            }
        }

        public Null CreateItem()
        {
            return Null.Singleton;
        }

        public void UpdateItem(Null item, object value)
        {
        }

        ushort _changeUnitCount;
    }
}