marosvolgyiz / RepoSync

This is a framework which is able to Sync SenseNet Content between SenseNet ECM to Other systems.
GNU General Public License v2.0
2 stars 0 forks source link

Implement IRepoSync Provider interface #2

Closed marosvolgyiz closed 7 years ago

marosvolgyiz commented 7 years ago

Draft:

public class RepoSyncActionResult{
    //Properties
    string ActionName {get;set;};
    bool Succes {get;set;};
    SN.Client.Content SourceContent{get;set;};
    SN.Client.Content TargetContent{get;set;};
    Exception FaultReason {get;set;};
}

interface IRepoSyncProvider{
     public IProviderSetting {get;set;}; 
     public IRepoSyncFilter {get;set;};

     public SN.Client.Content Load(string Path);
     public List<string> ReadPaths(); //By filter

     public List<SN.Client.Content> Read(); //Get All path list, and Get them.
     public List<RepoSyncActionResult> Write(List<SN.Client.Content> contents);
}
marosvolgyiz commented 7 years ago

I Tested this, and it's Okay.