internal bool OnArrayFilter(IMessagePackWriter messagePackWriter, ValueFilterInfo <int> valueInfo, bool result)
        {
            if (arrayFiltering is null)
            {
                return(result);
            }

            var args = new MessagePackFilteringEventArgs <int>(messagePackWriter, valueInfo, result);

            arrayFiltering(this, ref args);

            return(args.Result);
        }
        internal bool OnObjectFilter(IMessagePackWriter messagePackWriter, ValueFilterInfo <string> valueInfo, bool result)
        {
            if (objectFiltering is null)
            {
                return(result);
            }

            var args = new MessagePackFilteringEventArgs <string>(messagePackWriter, valueInfo, result);

            objectFiltering(this, ref args);

            return(args.Result);
        }
 internal MessagePackFilteringEventArgs(IMessagePackWriter jsonWriter, ValueFilterInfo <TKey> valueInfo, bool result)
 {
     JsonWriter = jsonWriter;
     ValueInfo  = valueInfo;
     Result     = result;
 }