@@ -118,7 +118,7 @@ module ServiceCollectionExtensions =
118
118
rootFactory : HttpContext -> 'Root ,
119
119
[<Optional>] additionalConverters : JsonConverter seq
120
120
) =
121
- services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, null , null )
121
+ services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, configure = null )
122
122
123
123
/// <summary>
124
124
/// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -134,7 +134,7 @@ module ServiceCollectionExtensions =
134
134
rootFactory : HttpContext -> 'Root ,
135
135
[<Optional>] additionalConverters : JsonConverter seq
136
136
) =
137
- services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, null , null )
137
+ services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, configure = null )
138
138
139
139
/// <summary>
140
140
/// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -185,7 +185,7 @@ module ServiceCollectionExtensions =
185
185
configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>,
186
186
[<Optional>] additionalConverters : JsonConverter seq
187
187
) =
188
- services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, null , configure)
188
+ services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, configure = configure)
189
189
190
190
/// <summary>
191
191
/// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -202,7 +202,7 @@ module ServiceCollectionExtensions =
202
202
configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>,
203
203
[<Optional>] additionalConverters : JsonConverter seq
204
204
) =
205
- services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, null , configure)
205
+ services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, configure = configure)
206
206
207
207
/// <summary>
208
208
/// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -221,7 +221,7 @@ module ServiceCollectionExtensions =
221
221
[<Optional>] additionalConverters : JsonConverter seq
222
222
) =
223
223
let getExecutorService ( sp : IServiceProvider ) = sp.GetRequiredService< Executor< 'Root>>()
224
- services.AddGraphQL< 'Root, 'Handler> ( getExecutorService, rootFactory, additionalConverters, null , null )
224
+ services.AddGraphQL< 'Root, 'Handler> ( getExecutorService, rootFactory, additionalConverters, configure = null )
225
225
226
226
/// <summary>
227
227
/// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -240,7 +240,7 @@ module ServiceCollectionExtensions =
240
240
[<Optional>] additionalConverters : JsonConverter seq
241
241
) =
242
242
let getExecutorService ( sp : IServiceProvider ) = sp.GetRequiredService< Executor< 'Root>>()
243
- services.AddGraphQL< 'Root> ( getExecutorService, rootFactory, additionalConverters, null , null )
243
+ services.AddGraphQL< 'Root> ( getExecutorService, rootFactory, additionalConverters, configure = null )
244
244
245
245
/// <summary>
246
246
/// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -300,7 +300,7 @@ module ServiceCollectionExtensions =
300
300
[<Optional>] additionalConverters : JsonConverter seq
301
301
) =
302
302
let getExecutorService ( sp : IServiceProvider ) = sp.GetRequiredService< Executor< 'Root>>()
303
- services.AddGraphQL< 'Root, 'Handler> ( getExecutorService, rootFactory, additionalConverters, null , configure)
303
+ services.AddGraphQL< 'Root, 'Handler> ( getExecutorService, rootFactory, additionalConverters, configure = null )
304
304
305
305
/// <summary>
306
306
/// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -320,7 +320,7 @@ module ServiceCollectionExtensions =
320
320
[<Optional>] additionalConverters : JsonConverter seq
321
321
) =
322
322
let getExecutorService ( sp : IServiceProvider ) = sp.GetRequiredService< Executor< 'Root>>()
323
- services.AddGraphQL< 'Root> ( getExecutorService, rootFactory, additionalConverters, null , configure)
323
+ services.AddGraphQL< 'Root> ( getExecutorService, rootFactory, additionalConverters, configure = configure)
324
324
325
325
326
326
[<AutoOpen; Extension>]
0 commit comments