Click or drag to resize

IShutdownServicePreventShutdown Method

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

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
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.
Exceptions
ExceptionCondition
InvalidOperationExceptionShutdown is already in progress
Remarks
This method is thread-safe.
See Also