/// <summary> /// Adds Cosmos Db as the data store for the FHIR server. /// </summary> /// <param name="fhirServerBuilder">The FHIR server builder.</param> /// <param name="configureAction">Configure action. Defaulted to null.</param> /// <returns>The builder.</returns> public static IFhirServerBuilder AddCosmosDb(this IFhirServerBuilder fhirServerBuilder, Action <CosmosDataStoreConfiguration> configureAction = null) { EnsureArg.IsNotNull(fhirServerBuilder, nameof(fhirServerBuilder)); return(fhirServerBuilder .AddCosmosDbPersistence(configureAction) .AddCosmosDbSearch() .AddCosmosDbHealthCheck()); }
/// <summary> /// Adds Cosmos Db as the data store for the FHIR server. /// </summary> /// <param name="fhirServerBuilder">The FHIR server builder.</param> /// <param name="configuration">The configuration for the server</param> /// <returns>The builder.</returns> public static IFhirServerBuilder AddCosmosDb(this IFhirServerBuilder fhirServerBuilder, IConfiguration configuration) { EnsureArg.IsNotNull(fhirServerBuilder, nameof(fhirServerBuilder)); EnsureArg.IsNotNull(configuration, nameof(configuration)); return(fhirServerBuilder .AddCosmosDbPersistence(configuration) .AddCosmosDbSearch() .AddCosmosDbHealthCheck()); }