Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }