Skip to content

Commit 2f0ee57

Browse files
valbersxperiandri
authored andcommitted
webSocketEndpointUrl -> webSocketEndpointPath
Because it's path and not a URL :)
1 parent 0c2307d commit 2f0ee57

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

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

0 commit comments

Comments
 (0)