@@ -45,7 +45,7 @@ module ServiceCollectionExtensions =
45
45
executorFactory : Func < IServiceProvider , Executor < 'Root >>,
46
46
rootFactory : HttpContext -> 'Root ,
47
47
[<Optional>] additionalConverters : JsonConverter seq ,
48
- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
48
+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
49
49
[<Optional>] configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>
50
50
) =
51
51
@@ -56,7 +56,7 @@ module ServiceCollectionExtensions =
56
56
57
57
let getOptions sp =
58
58
let executor = executorFactory.Invoke sp
59
- let options = createStandardOptions executor rootFactory additionalConverters webSocketEndpointUrl
59
+ let options = createStandardOptions executor rootFactory additionalConverters webSocketEndpointPath
60
60
match configure with
61
61
| null -> options
62
62
| _ -> configure.Invoke options
@@ -99,10 +99,10 @@ module ServiceCollectionExtensions =
99
99
executorFactory : Func < IServiceProvider , Executor < 'Root >>,
100
100
rootFactory : HttpContext -> 'Root ,
101
101
[<Optional>] additionalConverters : JsonConverter seq ,
102
- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
102
+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
103
103
[<Optional>] configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>
104
104
) =
105
- services.AddGraphQL< 'Root, DefaultGraphQLRequestHandler< 'Root>> ( executorFactory, rootFactory, additionalConverters, webSocketEndpointUrl , configure)
105
+ services.AddGraphQL< 'Root, DefaultGraphQLRequestHandler< 'Root>> ( executorFactory, rootFactory, additionalConverters, webSocketEndpointPath , configure)
106
106
107
107
/// <summary>
108
108
/// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -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.
@@ -148,10 +148,10 @@ module ServiceCollectionExtensions =
148
148
(
149
149
executor : Executor < 'Root >,
150
150
rootFactory : HttpContext -> 'Root ,
151
- webSocketEndpointUrl : string ,
151
+ webSocketEndpointPath : string ,
152
152
[<Optional>] additionalConverters : JsonConverter seq
153
153
) =
154
- services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointUrl , null )
154
+ services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointPath , null )
155
155
156
156
/// <summary>
157
157
/// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -165,10 +165,10 @@ module ServiceCollectionExtensions =
165
165
(
166
166
executor : Executor < 'Root >,
167
167
rootFactory : HttpContext -> 'Root ,
168
- webSocketEndpointUrl : string ,
168
+ webSocketEndpointPath : string ,
169
169
[<Optional>] additionalConverters : JsonConverter seq
170
170
) =
171
- services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointUrl , null )
171
+ services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointPath , null )
172
172
173
173
/// <summary>
174
174
/// 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.
@@ -256,11 +256,11 @@ module ServiceCollectionExtensions =
256
256
member services.AddGraphQL < 'Root , 'Handler when 'Handler :> GraphQLRequestHandler < 'Root > and 'Handler : not struct >
257
257
(
258
258
rootFactory : HttpContext -> 'Root ,
259
- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
259
+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
260
260
[<Optional>] additionalConverters : JsonConverter seq
261
261
) =
262
262
let getExecutorService ( sp : IServiceProvider ) = sp.GetRequiredService< Executor< 'Root>>()
263
- services.AddGraphQL< 'Root, 'Handler> ( getExecutorService, rootFactory, additionalConverters, webSocketEndpointUrl , null )
263
+ services.AddGraphQL< 'Root, 'Handler> ( getExecutorService, rootFactory, additionalConverters, webSocketEndpointPath , null )
264
264
265
265
/// <summary>
266
266
/// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -276,11 +276,11 @@ module ServiceCollectionExtensions =
276
276
member services.AddGraphQL < 'Root >
277
277
(
278
278
rootFactory : HttpContext -> 'Root ,
279
- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
279
+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
280
280
[<Optional>] additionalConverters : JsonConverter seq
281
281
) =
282
282
let getExecutorService ( sp : IServiceProvider ) = sp.GetRequiredService< Executor< 'Root>>()
283
- services.AddGraphQL< 'Root> ( getExecutorService, rootFactory, additionalConverters, webSocketEndpointUrl , null )
283
+ services.AddGraphQL< 'Root> ( getExecutorService, rootFactory, additionalConverters, webSocketEndpointPath , null )
284
284
285
285
/// <summary>
286
286
/// 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