public static void WaitForChangeBlocking() { var changeId = new ChangeId(Path.GetDirectoryName(typeof(SharedState).Assembly.Location)); var id = changeId.GetChangeId(); while (changeId.GetChangeId() == id) { Thread.Sleep(500); } }
public static async Task WaitForChange() { var changeId = new ChangeId(Path.GetDirectoryName(typeof(SharedState).Assembly.Location)); var id = changeId.GetChangeId(); while (changeId.GetChangeId() == id) { await Task.Delay(500); } }
internal void AnnouncePackageChange() { using (var changeId = new ChangeId(this.TapPath)) changeId.SetChangeId(changeId.GetChangeId() + 1); }