mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
* updatd ConsoleDriverFacade.CreateClipboard to honor FakeDriver.FakeBehaviors.UseFakeClipboard * Code cleanup of fake driver v2
17 lines
409 B
C#
17 lines
409 B
C#
#nullable enable
|
|
namespace Terminal.Gui.Drivers;
|
|
|
|
#pragma warning disable CS1591
|
|
internal class FakeApplicationLifecycle (IApplication origApp, CancellationTokenSource hardStop) : IDisposable
|
|
{
|
|
/// <inheritdoc/>
|
|
public void Dispose ()
|
|
{
|
|
hardStop.Cancel ();
|
|
|
|
Application.Top?.Dispose ();
|
|
Application.Shutdown ();
|
|
ApplicationImpl.ChangeInstance (origApp);
|
|
}
|
|
}
|