コード例 #1
0
        /// <summary>
        /// Retrieve a list with all key which are available on all cofnigured server nodes.
        /// </summary>
        /// <param name="host">The host represents the ip address of a server node.</param>
        /// <returns>
        /// A <see cref="List"/> of strings with all available keys.
        /// </returns>
        public override List <string> GetAllKeys(string host)
        {
            #region Access Log
#if TRACE
            {
                COM.Handler.LogHandler.Tracking("Access Method: " + this.GetType().ToString() + "->" + ((object)MethodBase.GetCurrentMethod()).ToString() + " ;");
            }
#endif
            #endregion Access Log

            try
            {
                return(CacheUtil.GetAllKeys(host));
            }
            catch (Exception)
            {
                Handler.LogHandler.Fatal(string.Format("Exception: Could not run 'GetAllKeys' on host: '{0}'!!", host));

#if DEBUG
                Console.WriteLine("Exception: Could not run 'GetAllKeys' on host: '{0}'!!", host);
#endif
                return(null);
            }
        }