Exemple #1
0
 public override void OnConfigure(
     IDescriptorContext context,
     IInterfaceFieldDescriptor descriptor,
     MemberInfo member)
 {
     descriptor.Extend().OnBeforeCompletion(
         (c, d) => d.ContextData.Add("abc", "def"));
 }
        public static IInterfaceFieldDescriptor ID(
            this IInterfaceFieldDescriptor descriptor)
        {
            if (descriptor is null)
            {
                throw new ArgumentNullException(nameof(descriptor));
            }

            descriptor.Extend().OnBeforeCreate(RewriteInterfaceFieldType);

            return(descriptor);
        }