Exemplo n.º 1
0
        public string Get(string id)
        {
            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Start();


            HashMD5 hhmd       = new HashMD5(id);
            string  tmp        = hhmd.Hashstr();
            string  serialized = JsonConvert.SerializeObject(hhmd.Hashstr());

            stopWatch.Stop();
            TimeSpan ts          = stopWatch.Elapsed;
            string   elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
                                                 ts.Hours, ts.Minutes, ts.Seconds,
                                                 ts.Milliseconds / 10);

            Log.Write(Request.ToString() + " " + elapsedTime + " " + id.Length + "\n");
            return(serialized);
        }