Click or drag to resize

ShutdownServicePreventShutdown Method

Prevents shutdown with the following reason. Dispose the returned value to allow shutdown again.

Namespace: Altaxo.Gui.Workbench
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public IDisposable PreventShutdown(
	string reason
)

Parameters

reason  String
The reason, will be displayed to the user.

Return Value

IDisposable
An IDisposable that must be disposed to allow shutdown again.

Implements

IShutdownServicePreventShutdown(String)
Exceptions
ExceptionCondition
InvalidOperationExceptionShutdown is already in progress
Remarks
This method is thread-safe.
See Also