diff --git a/src/GraphQL.DI/DISchemaTypes.cs b/src/GraphQL.DI/DISchemaTypes.cs index df1f6fa..afd83fb 100644 --- a/src/GraphQL.DI/DISchemaTypes.cs +++ b/src/GraphQL.DI/DISchemaTypes.cs @@ -10,49 +10,6 @@ public class DISchemaTypes : SchemaTypes private readonly bool _autoMapInputTypes = true; private readonly bool _autoMapOutputTypes = true; - private readonly Type _autoInputObjectGraphType = typeof(AutoInputObjectGraphType<>); - /* - /// - /// The generic type definition which is used to construct auto-mapped input graph types. - /// Defaults to . - /// - protected Type AutoInputObjectGraphType { - get => _autoInputObjectGraphType; - set { - if (value == null) throw new ArgumentNullException(nameof(value)); - if (!value.IsGenericTypeDefinition || value.GenericTypeArguments.Length != 1) - throw new ArgumentOutOfRangeException(nameof(value), - $"The type '{value}' is not a generic type definition with an arity of 1."); - if (!typeof(IInputObjectGraphType).IsAssignableFrom(value)) - throw new ArgumentOutOfRangeException(nameof(value), - $"The type '{value}' does not implement {nameof(IInputObjectGraphType)}"); - _autoInputObjectGraphType = value; - } - } - */ - - private readonly Type _autoObjectGraphType = typeof(AutoObjectGraphType<>); - /* - /// - /// The generic type definition which is used to construct auto-mapped Output graph types. - /// Defaults to . - /// - protected Type AutoObjectGraphType { - get => _autoObjectGraphType; - set { - if (value == null) - throw new ArgumentNullException(nameof(value)); - if (!value.IsGenericTypeDefinition || value.GenericTypeArguments.Length != 1) - throw new ArgumentOutOfRangeException(nameof(value), - $"The type '{value}' is not a generic type definition with an arity of 1."); - if (!typeof(IObjectGraphType).IsAssignableFrom(value)) - throw new ArgumentOutOfRangeException(nameof(value), - $"The type '{value}' does not implement {nameof(IObjectGraphType)}"); - _autoObjectGraphType = value; - } - } - */ - /// /// Initializes a new instance for the specified schema, and with the specified type resolver. /// Input and output clr types not mapped to a graph type utilize