@@ -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.
@@ -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.
@@ -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.
0 commit comments