Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1.             internal Guid? getOrCreateStagedUserId()
  2.             {
  3.                 string path = Path.Combine(rootAppDirectory, "packages", ".betaId");
  4.                 Guid result = default(Guid);
  5.                 try
  6.                 {
  7.                     if (!Guid.TryParse(File.ReadAllText(path, Encoding.UTF8), out result))
  8.                     {
  9.                         throw new Exception("File was read but contents were invalid");
  10.                     }
  11.                     this.Log().Info("Using existing staging user ID: {0}", result.ToString());
  12.                     return result;
  13.                 }
  14. // ..etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement