@@ -52,7 +52,7 @@ protected override void OnCompleteFields(
52
52
var descriptor = ObjectFieldDescriptor . New (
53
53
Context , p , Definition . RuntimeType , Definition . FieldBindingType ) ;
54
54
55
- if ( Definition . IsExtension && Context . TypeInspector . IsMemberIgnored ( p ) )
55
+ if ( Definition . IsExtension && Context . TypeInspector . IsMemberIgnored ( p ) )
56
56
{
57
57
descriptor . Ignore ( ) ;
58
58
}
@@ -82,7 +82,7 @@ bool IncludeField(IReadOnlyList<MemberInfo> all, MemberInfo current)
82
82
{
83
83
subscribeResolver = new HashSet < string > ( ) ;
84
84
85
- foreach ( MemberInfo member in all )
85
+ foreach ( MemberInfo member in all )
86
86
{
87
87
HandlePossibleSubscribeMember ( member ) ;
88
88
}
@@ -93,9 +93,9 @@ bool IncludeField(IReadOnlyList<MemberInfo> all, MemberInfo current)
93
93
94
94
void HandlePossibleSubscribeMember ( MemberInfo member )
95
95
{
96
- if ( member . IsDefined ( typeof ( SubscribeAttribute ) ) )
96
+ if ( member . IsDefined ( typeof ( SubscribeAttribute ) ) )
97
97
{
98
- if ( member . GetCustomAttribute < SubscribeAttribute > ( ) is { With : not null } attr )
98
+ if ( member . GetCustomAttribute < SubscribeAttribute > ( ) is { With : not null } attr )
99
99
{
100
100
subscribeResolver . Add ( attr . With ) ;
101
101
}
@@ -129,37 +129,40 @@ public IObjectTypeDescriptor<T> BindFieldsExplicitly() =>
129
129
public IObjectTypeDescriptor < T > BindFieldsImplicitly ( ) =>
130
130
BindFields ( BindingBehavior . Implicit ) ;
131
131
132
+ [ Obsolete ( "Use Implements." ) ]
132
133
public new IObjectTypeDescriptor < T > Interface < TInterface > ( )
133
134
where TInterface : InterfaceType
135
+ => Implements < TInterface > ( ) ;
136
+
137
+ [ Obsolete ( "Use Implements." ) ]
138
+ public new IObjectTypeDescriptor < T > Interface < TInterface > ( TInterface type )
139
+ where TInterface : InterfaceType
140
+ => Implements ( type ) ;
141
+
142
+ [ Obsolete ( "Use Implements." ) ]
143
+ public new IObjectTypeDescriptor < T > Interface ( NamedTypeNode type )
144
+ => Implements ( type ) ;
145
+
146
+ public new IObjectTypeDescriptor < T > Implements < TInterface > ( )
147
+ where TInterface : InterfaceType
134
148
{
135
- base . Interface < TInterface > ( ) ;
149
+ base . Implements < TInterface > ( ) ;
136
150
return this ;
137
151
}
138
152
139
- public new IObjectTypeDescriptor < T > Interface < TInterface > ( TInterface type )
153
+ public new IObjectTypeDescriptor < T > Implements < TInterface > ( TInterface type )
140
154
where TInterface : InterfaceType
141
155
{
142
- base . Interface ( type ) ;
156
+ base . Implements ( type ) ;
143
157
return this ;
144
158
}
145
159
146
- public new IObjectTypeDescriptor < T > Implements < TInterface > ( )
147
- where TInterface : InterfaceType =>
148
- Interface < TInterface > ( ) ;
149
-
150
- public new IObjectTypeDescriptor < T > Interface ( NamedTypeNode type )
160
+ public new IObjectTypeDescriptor < T > Implements ( NamedTypeNode type )
151
161
{
152
- base . Interface ( type ) ;
162
+ base . Implements ( type ) ;
153
163
return this ;
154
164
}
155
165
156
- public new IObjectTypeDescriptor < T > Implements < TInterface > ( TInterface type )
157
- where TInterface : InterfaceType =>
158
- Interface ( type ) ;
159
-
160
- public new IObjectTypeDescriptor < T > Implements ( NamedTypeNode type ) =>
161
- Interface ( type ) ;
162
-
163
166
public new IObjectTypeDescriptor < T > Include < TResolver > ( )
164
167
{
165
168
base . Include < TResolver > ( ) ;
0 commit comments