We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd2f92a commit 4e3c46eCopy full SHA for 4e3c46e
src/JsonApiDotNetCore/Extensions/IServiceCollectionExtensions.cs
@@ -59,18 +59,18 @@ public static IServiceCollection AddJsonApi(
59
IMvcCoreBuilder mvcBuilder,
60
Action<ServiceDiscoveryFacade> autoDiscover = null)
61
{
62
- var options = new JsonApiOptions();
63
- configureOptions(options);
+ var config = new JsonApiOptions();
+ configureOptions(config);
64
65
if(autoDiscover != null)
66
67
- var facade = new ServiceDiscoveryFacade(services, options.ContextGraphBuilder);
+ var facade = new ServiceDiscoveryFacade(services, config.ContextGraphBuilder);
68
autoDiscover(facade);
69
}
70
71
mvcBuilder.AddMvcOptions(opt => AddMvcOptions(opt, config));
72
73
- AddJsonApiInternals(services, options);
+ AddJsonApiInternals(services, config);
74
return services;
75
76
0 commit comments