File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ public static IServiceCollection AddNLWebNetMultiBackend(this IServiceCollection
128128 services . AddScoped < INLWebService > ( provider =>
129129 {
130130 var options = provider . GetRequiredService < IOptions < NLWebOptions > > ( ) ;
131- if ( options . Value . MultiBackend . Enabled )
131+ var multiBackendOptions = provider . GetRequiredService < IOptions < MultiBackendOptions > > ( ) ;
132+ if ( multiBackendOptions . Value . Enabled )
132133 {
133134 // Use multi-backend constructor
134135 return new NLWebService (
@@ -154,7 +155,8 @@ public static IServiceCollection AddNLWebNetMultiBackend(this IServiceCollection
154155 services . AddScoped < IResultGenerator > ( provider =>
155156 {
156157 var options = provider . GetRequiredService < IOptions < NLWebOptions > > ( ) ;
157- if ( options . Value . MultiBackend . Enabled )
158+ var multiBackendOptions = provider . GetRequiredService < IOptions < MultiBackendOptions > > ( ) ;
159+ if ( multiBackendOptions . Value . Enabled )
158160 {
159161 // Use multi-backend constructor
160162 return new ResultGenerator (
You can’t perform that action at this time.
0 commit comments