Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16aac72

Browse filesBrowse files
Added Schema Format Strategies (v2.0) (#141)
* Expanded support for programmatic schema formatting at startup
1 parent 3527a53 commit 16aac72
Copy full SHA for 16aac72

File tree

293 files changed

+3665
-1769
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

293 files changed

+3665
-1769
lines changed

‎build/strict-linting.ruleset

Copy file name to clipboardExpand all lines: build/strict-linting.ruleset
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<Rule Id="SA1001" Action="Error" />
8585
<Rule Id="SA1005" Action="Error" />
8686
<Rule Id="SA1009" Action="Error" />
87+
<Rule Id="SA1010" Action="None" />
8788
<Rule Id="SA1013" Action="Error" />
8889
<Rule Id="SA1021" Action="Error" />
8990
<Rule Id="SA1025" Action="Error" />

‎src/CodeMaid.config

Copy file name to clipboardExpand all lines: src/CodeMaid.config
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080
<setting name="Progressing_HideBuildProgressOnBuildStop" serializeAs="String">
8181
<value>False</value>
8282
</setting>
83+
<setting name="Cleaning_RunVisualStudioRemoveAndSortUsingStatements"
84+
serializeAs="String">
85+
<value>True</value>
86+
</setting>
8387
</SteveCadwallader.CodeMaid.Properties.Settings>
8488
</userSettings>
8589
</configuration>

‎src/ancillary-projects/starwars/starwars-api70/Program.cs

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/Program.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// *************************************************************
1+
// *************************************************************
22
// project: graphql-aspnet
33
// --
44
// repo: https://github.com/graphql-aspnet

‎src/ancillary-projects/starwars/starwars-api70/Startup.cs

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api70/Startup.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// *************************************************************
1+
// *************************************************************
22
// project: graphql-aspnet
33
// --
44
// repo: https://github.com/graphql-aspnet

‎src/ancillary-projects/starwars/starwars-api80/Program.cs

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api80/Program.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// *************************************************************
1+
// *************************************************************
22
// project: graphql-aspnet
33
// --
44
// repo: https://github.com/graphql-aspnet

‎src/graphql-aspnet-subscriptions/Attributes/SubscriptionAttribute.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Attributes/SubscriptionAttribute.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public SubscriptionAttribute(Type returnType, params Type[] additionalTypes)
6969
/// <param name="returnType">The type of the data object returned from this method. If this type implements
7070
/// <see cref="IGraphUnionProxy"/> this field will be declared as returning the union defined by the type.</param>
7171
public SubscriptionAttribute(string template, Type returnType)
72-
: base(false, SchemaItemCollections.Subscription, template, returnType)
72+
: base(false, ItemPathRoots.Subscription, template, returnType)
7373
{
7474
}
7575

@@ -82,7 +82,7 @@ public SubscriptionAttribute(string template, Type returnType)
8282
/// be sure to supply any additional concrete types so that they may be included in the object graph.</param>
8383
/// <param name="additionalTypes">Any additional types to include in the object graph on behalf of this method.</param>
8484
public SubscriptionAttribute(string template, Type returnType, params Type[] additionalTypes)
85-
: base(false, SchemaItemCollections.Subscription, template, (new Type[] { returnType }).Concat(additionalTypes ?? Enumerable.Empty<Type>()).ToArray())
85+
: base(false, ItemPathRoots.Subscription, template, (new Type[] { returnType }).Concat(additionalTypes ?? Enumerable.Empty<Type>()).ToArray())
8686
{
8787
this.EventName = null;
8888
}
@@ -97,7 +97,7 @@ public SubscriptionAttribute(string template, Type returnType, params Type[] add
9797
public SubscriptionAttribute(string template, string unionTypeName, Type unionTypeA, params Type[] additionalUnionTypes)
9898
: base(
9999
false,
100-
SchemaItemCollections.Subscription,
100+
ItemPathRoots.Subscription,
101101
template,
102102
unionTypeName,
103103
new Type[] { unionTypeA }.Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())

‎src/graphql-aspnet-subscriptions/Attributes/SubscriptionRootAttribute.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Attributes/SubscriptionRootAttribute.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public SubscriptionRootAttribute(Type returnType, params Type[] additionalTypes)
6868
/// <param name="returnType">The type of the object returned from this method. If this type implements
6969
/// <see cref="IGraphUnionProxy"/> this field will be declared as returning the union defined by the type.</param>
7070
public SubscriptionRootAttribute(string template, Type returnType)
71-
: base(true, SchemaItemCollections.Subscription, template, returnType)
71+
: base(true, ItemPathRoots.Subscription, template, returnType)
7272
{
7373
this.EventName = null;
7474
}
@@ -82,7 +82,7 @@ public SubscriptionRootAttribute(string template, Type returnType)
8282
/// be sure to supply any additional concrete types so that they may be included in the object graph.</param>
8383
/// <param name="additionalTypes">Any additional types to include in the object graph on behalf of this method.</param>
8484
public SubscriptionRootAttribute(string template, Type returnType, params Type[] additionalTypes)
85-
: base(true, SchemaItemCollections.Subscription, template, (new Type[] { returnType }).Concat(additionalTypes ?? Enumerable.Empty<Type>()).ToArray())
85+
: base(true, ItemPathRoots.Subscription, template, (new Type[] { returnType }).Concat(additionalTypes ?? Enumerable.Empty<Type>()).ToArray())
8686
{
8787
this.EventName = null;
8888
}
@@ -97,7 +97,7 @@ public SubscriptionRootAttribute(string template, Type returnType, params Type[]
9797
public SubscriptionRootAttribute(string template, string unionTypeName, Type unionTypeA, params Type[] additionalUnionTypes)
9898
: base(
9999
true,
100-
SchemaItemCollections.Subscription,
100+
ItemPathRoots.Subscription,
101101
template,
102102
unionTypeName,
103103
(new Type[] { unionTypeA }).Concat(additionalUnionTypes ?? Enumerable.Empty<Type>()).ToArray())

‎src/graphql-aspnet-subscriptions/Interfaces/Subscriptions/ISubscription.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Interfaces/Subscriptions/ISubscription.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public interface ISubscription
3232
ISubscriptionGraphField Field { get; }
3333

3434
/// <summary>
35-
/// Gets the unique route within a schema this subscription is pointed at.
35+
/// Gets the unique path within a schema this subscription is pointed at.
3636
/// </summary>
3737
/// <value>The route.</value>
38-
SchemaItemPath Route { get; }
38+
ItemPath ItemPath { get; }
3939

4040
/// <summary>
4141
/// Gets the original query data object that generated this subscription.

‎src/graphql-aspnet-subscriptions/Logging/SubscriptionEvents/ClientProxySubscriptionCreatedLogEntry.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Logging/SubscriptionEvents/ClientProxySubscriptionCreatedLogEntry.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ClientProxySubscriptionCreatedLogEntry(ISubscriptionClientProxy client, I
2828
{
2929
this.ClientId = client?.Id.ToString();
3030
this.SubscriptionId = subscription?.Id;
31-
this.SubscriptionPath = subscription?.Route?.Path;
31+
this.SubscriptionPath = subscription?.ItemPath?.Path;
3232
}
3333

3434
/// <summary>

‎src/graphql-aspnet-subscriptions/Logging/SubscriptionEvents/ClientProxySubscriptionEventReceived.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Logging/SubscriptionEvents/ClientProxySubscriptionEventReceived.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class ClientProxySubscriptionEventReceived<TSchema> : GraphLogEntry
3434
/// that will receive the event.</param>
3535
public ClientProxySubscriptionEventReceived(
3636
ISubscriptionClientProxy client,
37-
SchemaItemPath fieldPath,
37+
ItemPath fieldPath,
3838
IReadOnlyList<ISubscription> subscriptionsToReceive)
3939
: base(SubscriptionLogEventIds.ClientSubscriptionEventRecieved)
4040
{

‎src/graphql-aspnet-subscriptions/Logging/SubscriptionEvents/ClientProxySubscriptionStoppedLogEntry.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Logging/SubscriptionEvents/ClientProxySubscriptionStoppedLogEntry.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public ClientProxySubscriptionStoppedLogEntry(ISubscriptionClientProxy client, I
2727
{
2828
this.ClientId = client?.Id.ToString();
2929
this.SubscriptionId = subscription?.Id;
30-
this.SubscriptionPath = subscription?.Route?.Path;
30+
this.SubscriptionPath = subscription?.ItemPath?.Path;
3131
}
3232

3333
/// <summary>

‎src/graphql-aspnet-subscriptions/Logging/SubscriptionLoggerExtensions.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Logging/SubscriptionLoggerExtensions.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static class SubscriptionLoggerExtensions
3030
/// <typeparam name="TSchema">The type of the schema the route was registered for.</typeparam>
3131
/// <param name="logger">The logger.</param>
3232
/// <param name="routePath">The relative route path (e.g. '/graphql').</param>
33-
public static void SchemaSubscriptionRouteRegistered<TSchema>(
33+
public static void SchemaSubscriptionUrlRouteRegistered<TSchema>(
3434
this IGraphEventLogger logger,
3535
string routePath)
3636
where TSchema : class, ISchema
@@ -215,7 +215,7 @@ public static void ClientProxySubscriptionCreated(this IGraphEventLogger eventLo
215215
/// <param name="clientProxy">The client proxy recording the event.</param>
216216
/// <param name="fieldPath">The field path of the event that was received.</param>
217217
/// <param name="subscriptionsToReceive">The subscriptions set to receive the event.</param>
218-
public static void ClientProxySubscriptionEventReceived<TSchema>(this IGraphEventLogger eventLogger, ISubscriptionClientProxy clientProxy, SchemaItemPath fieldPath, IReadOnlyList<ISubscription> subscriptionsToReceive)
218+
public static void ClientProxySubscriptionEventReceived<TSchema>(this IGraphEventLogger eventLogger, ISubscriptionClientProxy clientProxy, ItemPath fieldPath, IReadOnlyList<ISubscription> subscriptionsToReceive)
219219
where TSchema : class, ISchema
220220
{
221221
eventLogger?.Log(

‎src/graphql-aspnet-subscriptions/Schemas/Generation/RuntimeSchemaItemDefinitions/RuntimeSubscriptionEnabledFieldGroupTemplate.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Schemas/Generation/RuntimeSchemaItemDefinitions/RuntimeSubscriptionEnabledFieldGroupTemplate.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public RuntimeSubscriptionEnabledFieldGroupTemplate(
2929
SchemaOptions options, string pathTemplate)
3030
: base(
3131
options,
32-
SchemaItemCollections.Subscription,
32+
ItemPathRoots.Subscription,
3333
pathTemplate)
3434
{
3535
}

‎src/graphql-aspnet-subscriptions/Schemas/Generation/RuntimeSchemaItemDefinitions/RuntimeSubscriptionEnabledResolvedFieldDefinition.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Schemas/Generation/RuntimeSchemaItemDefinitions/RuntimeSubscriptionEnabledResolvedFieldDefinition.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ internal static IGraphQLSubscriptionEnabledRuntimeResolvedFieldDefinition FromFi
3636
Validation.ThrowIfNull(fieldTemplate, nameof(fieldTemplate));
3737
var field = new RuntimeSubscriptionEnabledResolvedFieldDefinition(
3838
fieldTemplate.Options,
39-
fieldTemplate.Route,
39+
fieldTemplate.ItemPath,
4040
null);
4141

4242
foreach (var attrib in fieldTemplate.Attributes)
@@ -71,7 +71,7 @@ public RuntimeSubscriptionEnabledResolvedFieldDefinition(
7171
/// field.</param>
7272
private RuntimeSubscriptionEnabledResolvedFieldDefinition(
7373
SchemaOptions schemaOptions,
74-
SchemaItemPath route,
74+
ItemPath route,
7575
string eventName)
7676
: base(schemaOptions, route)
7777
{
@@ -81,8 +81,8 @@ private RuntimeSubscriptionEnabledResolvedFieldDefinition(
8181
/// <inheritdoc />
8282
protected override Attribute CreatePrimaryAttribute()
8383
{
84-
var (collection, path) = this.Route;
85-
if (collection == SchemaItemCollections.Subscription)
84+
var (collection, path) = this.ItemPath;
85+
if (collection == ItemPathRoots.Subscription)
8686
{
8787
return new SubscriptionRootAttribute(path, this.ReturnType)
8888
{
@@ -108,7 +108,7 @@ public string EventName
108108
if (!string.IsNullOrWhiteSpace(_customEventName))
109109
return;
110110

111-
var (_, path) = this.Route;
111+
var (_, path) = this.ItemPath;
112112

113113
// turns path1/path2/path3 => path1_path2_path3
114114
_customEventName = string.Join(

‎src/graphql-aspnet-subscriptions/Schemas/Generation/TypeTemplates/RuntimeSubscriptionGraphControllerTemplate.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Schemas/Generation/TypeTemplates/RuntimeSubscriptionGraphControllerTemplate.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public override void ValidateOrThrow(bool validateChildren = true)
5959
if (_fieldDefinition?.Resolver?.Method == null)
6060
{
6161
throw new GraphTypeDeclarationException(
62-
$"Unable to templatize the runtime field definition of '{_fieldDefinition?.Route.Path ?? "~null~"}' the resolver " +
62+
$"Unable to templatize the runtime field definition of '{_fieldDefinition?.ItemPath.Path ?? "~null~"}' the resolver " +
6363
$"is not properly configured.");
6464
}
6565

‎src/graphql-aspnet-subscriptions/Schemas/Generation/TypeTemplates/SubscriptionControllerActionGraphFieldTemplate.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Schemas/Generation/TypeTemplates/SubscriptionControllerActionGraphFieldTemplate.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ namespace GraphQL.AspNet.Schemas.Generation.TypeTemplates
1717
using GraphQL.AspNet.Attributes;
1818
using GraphQL.AspNet.Common.Extensions;
1919
using GraphQL.AspNet.Controllers;
20+
using GraphQL.AspNet.Execution;
2021
using GraphQL.AspNet.Execution.Exceptions;
2122
using GraphQL.AspNet.Interfaces.Internal;
22-
using GraphQL.AspNet.Schemas.TypeSystem;
2323

2424
/// <summary>
2525
/// Describes an subscription action on a <see cref="GraphController"/>, that can be registered
@@ -121,7 +121,7 @@ public override void ValidateOrThrow(bool validateChildren = true)
121121
}
122122

123123
// ensure there is only one param marked as the source object
124-
var sourceArgument = this.Arguments.SingleOrDefault(x => x.ArgumentModifier.HasFlag(GraphArgumentModifiers.ParentFieldResult));
124+
var sourceArgument = this.Arguments.SingleOrDefault(x => x.ArgumentModifier.HasFlag(ParameterModifiers.ParentFieldResult));
125125
if (sourceArgument == null)
126126
{
127127
throw new GraphTypeDeclarationException(
@@ -137,7 +137,7 @@ public override void ValidateOrThrow(bool validateChildren = true)
137137
/// <inheritdoc/>
138138
protected override GraphArgumentTemplate CreateArgument(ParameterInfo paramInfo)
139139
{
140-
if (this.Route.RootCollection == Execution.SchemaItemCollections.Subscription)
140+
if (this.ItemPath.Root == Execution.ItemPathRoots.Subscription)
141141
{
142142
return new SubscriptionGraphArgumentTemplate(
143143
this,

‎src/graphql-aspnet-subscriptions/Schemas/TypeMakers/SubscriptionEnabledGraphFieldMaker.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Schemas/TypeMakers/SubscriptionEnabledGraphFieldMaker.cs
+7-10Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,33 @@ public SubscriptionEnabledGraphFieldMaker(ISchema schema, IGraphArgumentMaker ar
3737
}
3838

3939
/// <inheritdoc />
40-
protected override MethodGraphField CreateFieldInstance(
41-
GraphNameFormatter formatter,
42-
IGraphFieldTemplate template,
43-
List<AppliedSecurityPolicyGroup> securityGroups)
40+
protected override MethodGraphField InstantiateField(IGraphFieldTemplate template, List<AppliedSecurityPolicyGroup> securityGroups)
4441
{
4542
var subTemplate = template as SubscriptionControllerActionGraphFieldTemplate;
4643
if (subTemplate != null
4744
&& subTemplate.FieldSource == GraphFieldSource.Action
48-
&& subTemplate.Route.RootCollection == SchemaItemCollections.Subscription)
45+
&& subTemplate.ItemPath.Root == ItemPathRoots.Subscription)
4946
{
5047
var directives = template.CreateAppliedDirectives();
5148

5249
var schemaTypeName = this.PrepareTypeName(template);
53-
var typeExpression = template.TypeExpression.CloneTo(schemaTypeName);
50+
var typeExpression = template.TypeExpression.Clone(schemaTypeName);
5451

5552
return new SubscriptionMethodGraphField(
56-
formatter.FormatFieldName(template.Name),
53+
template.Name,
5754
typeExpression,
58-
template.Route,
55+
template.ItemPath,
5956
template.InternalName,
60-
template.ObjectType,
6157
template.DeclaredReturnType,
58+
template.ObjectType,
6259
template.Mode,
6360
template.CreateResolver(),
6461
securityGroups,
6562
subTemplate.EventName,
6663
directives);
6764
}
6865

69-
return base.CreateFieldInstance(formatter, template, securityGroups);
66+
return base.InstantiateField(template, securityGroups);
7067
}
7168
}
7269
}

‎src/graphql-aspnet-subscriptions/Schemas/TypeSystem/SubscriptionMethodGraphField.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/Schemas/TypeSystem/SubscriptionMethodGraphField.cs
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public class SubscriptionMethodGraphField : MethodGraphField, ISubscriptionGraph
2626
/// </summary>
2727
/// <param name="fieldName">Name of the field in the type declaration..</param>
2828
/// <param name="typeExpression">The meta data about how this type field is implemented.</param>
29-
/// <param name="route">The formal route to this field in the object graph.</param>
29+
/// <param name="itemPath">The formal path to this field in the object graph.</param>
3030
/// <param name="internalFullName">The fully qualified name of the method this field respresents, as it was declared
3131
/// in C# code.</param>
32-
/// <param name="objectType">The .NET type of the item or items that represent the graph type returned by this field.</param>
3332
/// <param name="declaredReturnType">The .NET type as it was declared on the property which generated this field..</param>
33+
/// <param name="objectType">The .NET type of the item or items that represent the graph type returned by this field.</param>
3434
/// <param name="mode">The execution mode of this field.</param>
3535
/// <param name="resolver">The resolver.</param>
3636
/// <param name="securityPolicies">The security policies applied to this field.</param>
@@ -39,30 +39,30 @@ public class SubscriptionMethodGraphField : MethodGraphField, ISubscriptionGraph
3939
public SubscriptionMethodGraphField(
4040
string fieldName,
4141
GraphTypeExpression typeExpression,
42-
SchemaItemPath route,
42+
ItemPath itemPath,
4343
string internalFullName,
44-
Type objectType = null,
4544
Type declaredReturnType = null,
45+
Type objectType = null,
4646
Execution.FieldResolutionMode mode = Execution.FieldResolutionMode.PerSourceItem,
4747
Interfaces.Execution.IGraphFieldResolver resolver = null,
4848
IEnumerable<AppliedSecurityPolicyGroup> securityPolicies = null,
4949
string eventName = null,
5050
IAppliedDirectiveCollection directives = null)
51-
: base(fieldName, internalFullName, typeExpression, route, declaredReturnType, objectType, mode, resolver, securityPolicies, directives)
51+
: base(fieldName, internalFullName, typeExpression, itemPath, declaredReturnType, objectType, mode, resolver, securityPolicies, directives)
5252
{
5353
this.EventName = eventName;
5454
}
5555

5656
/// <inheritdoc />
57-
protected override MethodGraphField CreateNewInstance(IGraphType parent)
57+
protected override MethodGraphField CreateNewInstance()
5858
{
5959
return new SubscriptionMethodGraphField(
6060
this.Name,
6161
this.TypeExpression.Clone(),
62-
parent.Route.CreateChild(this.Name),
62+
this.ItemPath.Clone(),
6363
this.InternalName,
64-
this.ObjectType,
6564
this.DeclaredReturnType,
65+
this.ObjectType,
6666
this.Mode,
6767
this.Resolver,
6868
this.SecurityGroups,

‎src/graphql-aspnet-subscriptions/SubscriptionServer/ClientSubscription.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/SubscriptionServer/ClientSubscription.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public ClientSubscription(
115115
/// Gets the unique route within a schema this subscription is pointed at.
116116
/// </summary>
117117
/// <value>The route.</value>
118-
public SchemaItemPath Route => this.Field?.Route;
118+
public ItemPath ItemPath => this.Field?.ItemPath;
119119

120120
/// <summary>
121121
/// Gets a value indicating whether this subscription has been properly configured.

‎src/graphql-aspnet-subscriptions/SubscriptionServer/SubscriptionClientProxyBase{TSchema,TMessage}.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet-subscriptions/SubscriptionServer/SubscriptionClientProxyBase{TSchema,TMessage}.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public async ValueTask ReceiveEventAsync(SubscriptionEvent eventData, Cancellati
296296
// find the subscriptions that are registered for the received data
297297
// its possible a client discontinued after the data was dispatched
298298
// but before the client processed...just stop if this is the case
299-
var targetSubscriptions = _subscriptions.RetreiveByRoute(field);
299+
var targetSubscriptions = _subscriptions.RetreiveByItemPath(field);
300300
if (targetSubscriptions.Count == 0)
301301
return;
302302

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.