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"); } }
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 FhirResponse GetFhirResponse(Interaction interaction, IEnumerable<object> parameters = null) { if (interaction.IsDeleted()) { return Respond.Gone(interaction); } FhirResponse response = null; if (parameters != null) { response = interceptorRunner.RunInterceptors(interaction, parameters); } return response ?? Respond.WithResource(interaction); }