Skip to content

Commit 0c2307d

Browse files
valbersxperiandri
authored andcommitted
AspNetCore startup ext.: fixing default websocket endp. path
It was not being set because in the calls in the overloads it was explicitly being set to `null`.
1 parent 236eec9 commit 0c2307d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/FSharp.Data.GraphQL.Server.AspNetCore/StartupExtensions.fs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
@@ -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.
@@ -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

Comments
 (0)