Beispiel #1
0
 public void Process(Interaction interaction)
 {
     if (interaction.HasResource())
     {
         IndexResource(interaction.Resource, interaction.Key);
     }
     else
     {
         if (interaction.IsDeleted())
         {
             _indexStore.Delete(interaction);
         }
         else throw new Exception("Entry is neither resource nor deleted");
     }
 }
Beispiel #2
0
 public void Process(Interaction interaction)
 {
     if (interaction.HasResource())
     {
         put(interaction);
     }
     else
     {
         if (interaction.IsDeleted())
         {
             store.Delete(interaction);
         }
         else throw new Exception("Entry is neither resource nor deleted");
     }
 }
Beispiel #3
0
 private static void ConnectResource(Interaction interaction, Bundle.BundleEntryComponent entry)
 {
     if (interaction.HasResource())
     {
         entry.Resource = interaction.Resource;
         interaction.Key.ApplyTo(entry.Resource);
         entry.FullUrl = interaction.Key.ToUriString();
     }
 }