@@ -45,7 +45,7 @@ module ServiceCollectionExtensions =
4545 executorFactory : Func < IServiceProvider , Executor < 'Root >>,
4646 rootFactory : HttpContext -> 'Root ,
4747 [<Optional>] additionalConverters : JsonConverter seq ,
48- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
48+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
4949 [<Optional>] configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>
5050 ) =
5151
@@ -56,7 +56,7 @@ module ServiceCollectionExtensions =
5656
5757 let getOptions sp =
5858 let executor = executorFactory.Invoke sp
59- let options = createStandardOptions executor rootFactory additionalConverters webSocketEndpointUrl
59+ let options = createStandardOptions executor rootFactory additionalConverters webSocketEndpointPath
6060 match configure with
6161 | null -> options
6262 | _ -> configure.Invoke options
@@ -99,10 +99,10 @@ module ServiceCollectionExtensions =
9999 executorFactory : Func < IServiceProvider , Executor < 'Root >>,
100100 rootFactory : HttpContext -> 'Root ,
101101 [<Optional>] additionalConverters : JsonConverter seq ,
102- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
102+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
103103 [<Optional>] configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>
104104 ) =
105- services.AddGraphQL< 'Root, DefaultGraphQLRequestHandler< 'Root>> ( executorFactory, rootFactory, additionalConverters, webSocketEndpointUrl , configure)
105+ services.AddGraphQL< 'Root, DefaultGraphQLRequestHandler< 'Root>> ( executorFactory, rootFactory, additionalConverters, webSocketEndpointPath , configure)
106106
107107 /// <summary>
108108 /// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -118,7 +118,7 @@ module ServiceCollectionExtensions =
118118 rootFactory : HttpContext -> 'Root ,
119119 [<Optional>] additionalConverters : JsonConverter seq
120120 ) =
121- services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, null , null )
121+ services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, configure = null )
122122
123123 /// <summary>
124124 /// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -134,7 +134,7 @@ module ServiceCollectionExtensions =
134134 rootFactory : HttpContext -> 'Root ,
135135 [<Optional>] additionalConverters : JsonConverter seq
136136 ) =
137- services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, null , null )
137+ services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, configure = null )
138138
139139 /// <summary>
140140 /// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -148,10 +148,10 @@ module ServiceCollectionExtensions =
148148 (
149149 executor : Executor < 'Root >,
150150 rootFactory : HttpContext -> 'Root ,
151- webSocketEndpointUrl : string ,
151+ webSocketEndpointPath : string ,
152152 [<Optional>] additionalConverters : JsonConverter seq
153153 ) =
154- services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointUrl , null )
154+ services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointPath , null )
155155
156156 /// <summary>
157157 /// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -165,10 +165,10 @@ module ServiceCollectionExtensions =
165165 (
166166 executor : Executor < 'Root >,
167167 rootFactory : HttpContext -> 'Root ,
168- webSocketEndpointUrl : string ,
168+ webSocketEndpointPath : string ,
169169 [<Optional>] additionalConverters : JsonConverter seq
170170 ) =
171- services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointUrl , null )
171+ services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, webSocketEndpointPath , null )
172172
173173 /// <summary>
174174 /// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -185,7 +185,7 @@ module ServiceCollectionExtensions =
185185 configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>,
186186 [<Optional>] additionalConverters : JsonConverter seq
187187 ) =
188- services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, null , configure)
188+ services.AddGraphQL< 'Root, 'Handler> (( fun _ -> executor), rootFactory, additionalConverters, configure = configure)
189189
190190 /// <summary>
191191 /// Adds GraphQL options and services to the service collection. Requires an executor instance to be provided.
@@ -202,7 +202,7 @@ module ServiceCollectionExtensions =
202202 configure : Func < GraphQLOptions < 'Root >, GraphQLOptions < 'Root >>,
203203 [<Optional>] additionalConverters : JsonConverter seq
204204 ) =
205- services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, null , configure)
205+ services.AddGraphQL< 'Root> (( fun _ -> executor), rootFactory, additionalConverters, configure = configure)
206206
207207 /// <summary>
208208 /// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -221,7 +221,7 @@ module ServiceCollectionExtensions =
221221 [<Optional>] additionalConverters : JsonConverter seq
222222 ) =
223223 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 )
225225
226226 /// <summary>
227227 /// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -240,7 +240,7 @@ module ServiceCollectionExtensions =
240240 [<Optional>] additionalConverters : JsonConverter seq
241241 ) =
242242 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 )
244244
245245 /// <summary>
246246 /// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -256,11 +256,11 @@ module ServiceCollectionExtensions =
256256 member services.AddGraphQL < 'Root , 'Handler when 'Handler :> GraphQLRequestHandler < 'Root > and 'Handler : not struct >
257257 (
258258 rootFactory : HttpContext -> 'Root ,
259- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
259+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
260260 [<Optional>] additionalConverters : JsonConverter seq
261261 ) =
262262 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 )
264264
265265 /// <summary>
266266 /// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -276,11 +276,11 @@ module ServiceCollectionExtensions =
276276 member services.AddGraphQL < 'Root >
277277 (
278278 rootFactory : HttpContext -> 'Root ,
279- [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointUrl : string ,
279+ [<Optional; DefaultParameterValue ( GraphQLOptionsDefaults.WebSocketEndpoint) >] webSocketEndpointPath : string ,
280280 [<Optional>] additionalConverters : JsonConverter seq
281281 ) =
282282 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 )
284284
285285 /// <summary>
286286 /// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -300,7 +300,7 @@ module ServiceCollectionExtensions =
300300 [<Optional>] additionalConverters : JsonConverter seq
301301 ) =
302302 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 )
304304
305305 /// <summary>
306306 /// Adds GraphQL options and services to the service collection. It gets the executor from the service provider.
@@ -320,7 +320,7 @@ module ServiceCollectionExtensions =
320320 [<Optional>] additionalConverters : JsonConverter seq
321321 ) =
322322 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)
324324
325325
326326[<AutoOpen; Extension>]
0 commit comments