Beispiel #1
0
        /// <summary>
        /// Get all references.
        /// </summary>
        /// <param name='refresh'>
        /// Indicates if data cache should be updated
        /// with information from the web service.
        /// </param>
        /// <returns>All references.</returns>
        public static ReferenceList GetReferences(Boolean refresh)
        {
            ReferenceList references = null;

            if (refresh)
            {
                References = null;
            }
            for (Int32 getAttempts = 0; (references.IsNull()) && (getAttempts < 3); getAttempts++)
            {
                LoadReferences();
                references = References;
            }
            return(references);
        }