Skybound.Gecko.NavigateFinishedNotifier.BlockUntilNavigationFinished C# (CSharp) Méthode

BlockUntilNavigationFinished() public méthode

This method is only intended to be used by unittests The normal way to know when a document has finished loading is to listen for the NavigateFinished event.
public BlockUntilNavigationFinished ( ) : void
Résultat void
        public void BlockUntilNavigationFinished()
        {
            bool done = false;
            NavigateFinished += (sender, e) => done = true;
            while (!done)
            {
                Application.DoEvents();
                Application.RaiseIdle(new EventArgs());
            }
        }