示例#1
0
            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);
                }
            }
示例#2
0
            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);
                }
            }
示例#3
0
 internal void AnnouncePackageChange()
 {
     using (var changeId = new ChangeId(this.TapPath))
         changeId.SetChangeId(changeId.GetChangeId() + 1);
 }