diff --git a/src/GraphQL.DI/DIObjectGraphBase.cs b/src/GraphQL.DI/DIObjectGraphBase.cs index 155467e..0075362 100644 --- a/src/GraphQL.DI/DIObjectGraphBase.cs +++ b/src/GraphQL.DI/DIObjectGraphBase.cs @@ -5,7 +5,7 @@ namespace GraphQL.DI /// used if the type is . /// //this class is a placeholder for future support of properties or methods on the base class - public class DIObjectGraphBase + public class DIObjectGraphBase : IDIObjectGraphBase { //this would be an ideal spot to put public readonly fields for the resolving query, such as Schema, Metrics, Executor, and so on, rather than being inside the ResolveFieldContext instance. //this could only contain fields that are not unique to a resolving field (such as Source), so as to not break multithreading support @@ -16,7 +16,7 @@ public class DIObjectGraphBase /// This is a required base type of all DI-created graph types. may be /// used when the type is not . /// - public class DIObjectGraphBase : DIObjectGraphBase + public class DIObjectGraphBase : DIObjectGraphBase, IDIObjectGraphBase { } } diff --git a/src/GraphQL.DI/DIObjectGraphType.cs b/src/GraphQL.DI/DIObjectGraphType.cs index f9ac359..9e8073e 100644 --- a/src/GraphQL.DI/DIObjectGraphType.cs +++ b/src/GraphQL.DI/DIObjectGraphType.cs @@ -20,12 +20,12 @@ namespace GraphQL.DI /// Wraps a graph type for use with GraphQL. This class should be registered as a singleton /// within your dependency injection provider. /// - public class DIObjectGraphType : DIObjectGraphType where TDIGraph : DIObjectGraphBase { } + public class DIObjectGraphType : DIObjectGraphType where TDIGraph : IDIObjectGraphBase { } /// /// Wraps a graph type for use with GraphQL. This class should be registered as a singleton /// within your dependency injection provider. /// - public class DIObjectGraphType : ObjectGraphType where TDIGraph : DIObjectGraphBase + public class DIObjectGraphType : ObjectGraphType where TDIGraph : IDIObjectGraphBase { /// /// Initializes a new instance, configuring the , , diff --git a/src/GraphQL.DI/IDIObjectGraphBase.cs b/src/GraphQL.DI/IDIObjectGraphBase.cs new file mode 100644 index 0000000..ee95ffa --- /dev/null +++ b/src/GraphQL.DI/IDIObjectGraphBase.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace GraphQL.DI +{ + public interface IDIObjectGraphBase + { + } + + public interface IDIObjectGraphBase : IDIObjectGraphBase + { + } +}