protected override InterfaceTypeDefinition CreateDefinition( IInitializationContext context) { var descriptor = InterfaceTypeDescriptor.FromSchemaType( context.DescriptorContext, GetType()); _configure(descriptor); return(descriptor.CreateDefinition()); }
protected override InterfaceTypeDefinition CreateDefinition( ITypeDiscoveryContext context) { try { if (Definition is null) { var descriptor = InterfaceTypeDescriptor.FromSchemaType( context.DescriptorContext, GetType()); _configure !(descriptor); return(descriptor.CreateDefinition()); } return(Definition); } finally { _configure = null; } }