Esempio n. 1
0
        public string BuildKey()
        {
            if (!String.IsNullOrEmpty(_id))
            {
                return(_id);
            }

            if (!ShortId.IsShortCode())
            {
                throw new ArgumentNullException("ShortId can not be null");
            }

            return(String.Format("{0}_{1}_{2}_{3}_{4}_{5}", Type, ShortId, Year, Month, Day, Hour));
        }