static async Task SaveRegistration(Storage storage, Uri registrationBaseAddress, IDictionary <string, IGraph> items, IList <Uri> cleanUpList, SingleGraphPersistence graphPersistence, Uri contentBaseAddress, int partitionSize)
 {
     using (RegistrationCatalogWriter writer = new RegistrationCatalogWriter(storage, partitionSize, cleanUpList, graphPersistence))
     {
         foreach (KeyValuePair <string, IGraph> item in items)
         {
             writer.Add(new RegistrationCatalogItem(new Uri(item.Key), item.Value, contentBaseAddress, registrationBaseAddress));
         }
         await writer.Commit(DateTime.UtcNow);
     }
 }
 static async Task SaveRegistration(Storage storage, Uri registrationBaseAddress, IDictionary<string, IGraph> items, IList<Uri> cleanUpList, SingleGraphPersistence graphPersistence, Uri contentBaseAddress, int partitionSize, CancellationToken cancellationToken)
 {
     using (RegistrationCatalogWriter writer = new RegistrationCatalogWriter(storage, partitionSize, cleanUpList, graphPersistence))
     {
         foreach (KeyValuePair<string, IGraph> item in items)
         {
             writer.Add(new RegistrationCatalogItem(new Uri(item.Key), item.Value, contentBaseAddress, registrationBaseAddress));
         }
         await writer.Commit(DateTime.UtcNow, null, cancellationToken);
     }
 }