private static void BuildFromRemote(Library library, ref SynchronisationStates synchronisation_states)
 {
     // TODO: Replace this with a pretty interface class ------------------------------------------------
     if (library.WebLibraryDetail.IsIntranetLibrary)
     {
         SynchronisationStateBuilder_Intranet.BuildFromRemote(library, ref synchronisation_states);
     }
     else
     {
         throw new Exception(String.Format("Did not understand how to build from remote for library '{0}' (Type: {1})", library.WebLibraryDetail.Title, library.WebLibraryDetail.LibraryType()));
     }
     // -----------------------------------------------------------------------------------------------------
 }
Example #2
0
 static void BuildFromRemote(Library library, SynchronisationStates synchronisation_states)
 {
     // --- TODO: Replace this with a pretty interface class ------------------------------------------------
     if (false)
     {
     }
     else if (library.WebLibraryDetail.IsIntranetLibrary)
     {
         SynchronisationStateBuilder_Intranet.BuildFromRemote(library, synchronisation_states);
     }
     else
     {
         throw new Exception(String.Format("Did not understand how to build from remote for library {0}", library.WebLibraryDetail.Title));
     }
     // -----------------------------------------------------------------------------------------------------
 }