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"); } }
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"); } }
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(); } }