RavenDB.DependencyInjection icon indicating copy to clipboard operation
RavenDB.DependencyInjection copied to clipboard

options.Settings is null in AddRavenDbDocStore call

Open cadilhac opened this issue 2 years ago • 1 comments

Using asp.net core 6. I added the RavenSettings section in the config file. However, options.Settings is null in AddRavenDbDocStore's delegate.

cadilhac avatar Mar 16 '22 15:03 cadilhac

Suggestion:

In ServiceCollectionExtensions.AddRavenDbDocStore(this IServiceCollection services, Action<RavenOptions> options)

Switch calls services.Configure(options); and services.ConfigureOptions<RavenOptionsSetup>(), otherwise, the settings are null in AddRavenDbDocStore's delegate.

cadilhac avatar Apr 13 '22 12:04 cadilhac