Ejemplo n.º 1
0
        private bool?RaiseDoWhile(Tuple <long, string> pair)
        {
            if (Configuration.NotifyFileReadObject != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => Configuration.NotifyFileReadObject.DoWhile(index, state));

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

                return(retValue);
            }
            return(null);
        }
Ejemplo n.º 2
0
        private bool?RaiseDoWhile(Tuple <long, IDictionary <string, object> > pair)
        {
            if (Reader != null && Reader.HasDoWhileSubscribed)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreError <bool?>(() => Reader.RaiseDoWhile(index, state));

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

                return(retValue);
            }
            return(null);
        }
Ejemplo n.º 3
0
        private bool?RaiseDoWhile(Tuple <long, string> pair)
        {
            if (_callbackRecord != null)
            {
                long   index    = pair.Item1;
                object state    = pair.Item2;
                bool?  retValue = ChoFuncEx.RunWithIgnoreErrorNullableReturn <bool>(() => _callbackRecord.DoWhile(index, state));

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

                return(retValue);
            }
            return(null);
        }
Ejemplo n.º 4
0
        private bool?RaiseSkipUntil(Tuple <long, 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);
        }