Exemple #1
0
        private bool?RaiseSkipUntil(Tuple <long, string> pair)
        {
            if (_callbackRecord != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => _callbackRecord.SkipUntil(index, state));

                return(retValue);
            }
            else if (Reader != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseSkipUntil(index, state));

                return(retValue);
            }
            return(null);
        }
        private bool?RaiseSkipUntil(Tuple <long, string> pair)
        {
            if (Configuration.NotifyFileReadObject != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => Configuration.NotifyFileReadObject.SkipUntil(index, state));

                return(retValue);
            }
            else if (Reader != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseSkipUntil(index, state));

                return(retValue);
            }
            return(null);
        }
Exemple #3
0
        private bool?RaiseSkipUntil(Tuple <long, IDictionary <string, object> > pair)
        {
            if (Reader != null && Reader.HasSkipUntilSubscribed)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseSkipUntil(index, state));

                return(retValue);
            }
            else if (_callbackFileRead != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => _callbackFileRead.SkipUntil(index, state));

                return(retValue);
            }
            return(null);
        }