Exemplo n.º 1
0
        private int DisplayInitialProgress()
        {
            int count = -1;

            if (ProgressManager.FirstInChain)
            {
                //If DisplayFirstInChainMessage is overridden, count _may_ be set (e.g. if we are streaming records,
                //in which case we will get the total number of records we _will_ retrieve before returning)
                count = DisplayFirstInChainMessage();
            }
            else
            {
                if (ProgressManager.PreviousContainsProgress)
                {
                    ProgressManager.SetPreviousOperation($"Retrieving all {TypeDescription.ToLower()}s");
                }
            }

            return(count);
        }