Exemplo n.º 1
0
        private static void LoadUuid(IDatabaseSettingDao dao)
        {
            string uuid = dao.GetUuid();

            if (string.IsNullOrEmpty(uuid))
            {
                UuidGenerator g = Guid.NewGuid();
                uuid = g.ToString().Replace("-", "");
                dao.SetUuid(uuid);
            }

            RuntimeSettings.Uuid   = uuid;
            ExceptionReporter.Uuid = uuid;
            Logger.InfoFormat("Your user id is {0}, use this for any bug reports", RuntimeSettings.Uuid);
        }
Exemplo n.º 2
0
 public void SetUuid(string uuid)
 {
     ThreadExecuter.Execute(
         () => repo.SetUuid(uuid)
         );
 }