public void EndTrack() { ThreadHelper.JoinableTaskFactory.Run(async() => { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); RunningDocumentTable.UnadviseRunningDocTableEvents(_cookie); }); }
private void DisconnectRunningDocumentTable() { ThreadHelper.ThrowIfNotOnUIThread(); if (_runningDocTableEventCookie != 0) { RunningDocumentTable?.UnadviseRunningDocTableEvents(_runningDocTableEventCookie); _runningDocTableEventCookie = 0; } }
public void EndTrack() { RunningDocumentTable.UnadviseRunningDocTableEvents(_cookie); }