MartinZikmund / blog-backlog

Backlog of planned blogposts
MIT License
0 stars 0 forks source link

`ValidateScopes` to prevent resolving scoped from singletons #77

Open MartinZikmund opened 1 year ago

MartinZikmund commented 1 year ago
            .UseDefaultServiceProvider((context, options) =>
            {
                options.ValidateScopes = true;
                options.ValidateOnBuild = true;
            })
            .ConfigureServices((context, services) => ConfigureServices(services))