locked
API suggestions for n-tier applications RRS feed

  • General discussion

  • Hello,

    Currently the ServerSyncProviderProxy accepts a System.Object in it's constructor. I think it would be much better if there was an interface that define the required operations for that object, eg:

    Code Snippet

    [ServiceContract(Namespace = "http://example.com/Synchronization")]
    public interface IServerSyncProvider
    {
     [OperationContract]
     SyncServerInfo GetServerInfo(SyncSession syncSession);

     [OperationContract]
     SyncSchema GetSchema(Collection<string> tableNames, SyncSession syncSession);

     [OperationContract]
     SyncContext GetChanges(SyncGroupMetadata groupMetadata, SyncSession syncSession);

     [OperationContract]
     SyncContext ApplyChanges(SyncGroupMetadata groupMetadata, DataSet dataSet, SyncSession syncSession);
    }

    public class MyServerSyncProviderProxy : ServerSyncProviderProxy
    {
     public MyServerSyncProviderProxy(IServerSyncProvider serverSyncProvider)
      : base(serverSyncProvider)
     {
     }

    }



    • Moved by Max Wang_1983 Tuesday, April 19, 2011 6:18 PM Forum consolidation (From:SyncFx - Feedback [ReadOnly])
    Monday, May 26, 2008 6:09 AM

All replies

  • Earlier today at Tech Ed i noticed at a presentation that this interface is indeed useful Wink

    (Offcourse a bit of tweaking had been in order to get it to work on CF)....
    Thursday, June 5, 2008 12:47 AM