public static SortEnumTypeDescriptor FromSchemaType(
        IDescriptorContext context,
        Type schemaType,
        string?scope)
    {
        SortEnumTypeDescriptor descriptor = New(context, schemaType, scope);

        return(descriptor);
    }
Esempio n. 2
0
    protected override EnumTypeDefinition CreateDefinition(
        ITypeDiscoveryContext context)
    {
        var descriptor = SortEnumTypeDescriptor.FromSchemaType(
            context.DescriptorContext,
            GetType(),
            context.Scope);

        _configure !(descriptor);
        _configure = null;

        return(descriptor.CreateDefinition());
    }