public static ResolverContext Rent( IExecutionContext executionContext, FieldSelection fieldSelection, IImmutableStack <object> source, IDictionary <string, object> serializedResult) { var context = new ResolverContext(); context.Initialize( executionContext, fieldSelection, source, serializedResult); return(context); }
private static ResolverContext Rent( FieldSelection fieldSelection, IImmutableStack <object> source, object sourceObject, ResolverContext sourceContext, IDictionary <string, object> serializedResult, Path path, Action propagateNonNullViolation) { // var context = ObjectPools.ResolverContexts.Rent(); var context = new ResolverContext(); context.Initialize( fieldSelection, source, sourceObject, sourceContext, serializedResult, path, propagateNonNullViolation); return(context); }