Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Nov 17, 2021
1 parent 6a9815a commit 7f7f955
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions src/GraphQL.DI/DISchemaTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,6 @@ public class DISchemaTypes : SchemaTypes
private readonly bool _autoMapInputTypes = true;
private readonly bool _autoMapOutputTypes = true;

private readonly Type _autoInputObjectGraphType = typeof(AutoInputObjectGraphType<>);
/*
/// <summary>
/// The generic type definition which is used to construct auto-mapped input graph types.
/// Defaults to <see cref="AutoInputObjectGraphType{TSourceType}"/>.
/// </summary>
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<>);
/*
/// <summary>
/// The generic type definition which is used to construct auto-mapped Output graph types.
/// Defaults to <see cref="AutoObjectGraphType{TSourceType}"/>.
/// </summary>
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;
}
}
*/

/// <summary>
/// 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 <see cref="AutoInputObjectGraphType{TSourceType}"/>
Expand Down

0 comments on commit 7f7f955

Please sign in to comment.