Click or drag to resize

IOperationServiceTryExecuteUiOperation Method

Allows to show messages on the currently opened screen.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
void TryExecuteUiOperation(
	Action<IViewManager> callback
)

Parameters

callback
Type: SystemActionIViewManager
Callback that can show messages using the view manager.
Exceptions
ExceptionCondition
NotSupportedExceptionCurrent screen doesn't support this operation.
OperationCanceledExceptionCurrent screen has canceled the operation. It means that the current screen was unable to execute the operation immediately and therefore scheduled it for executing later, but then navigation to another screen has happened in a way that prevented calling delayed operations before changing the screen.
ExceptionAny exception thrown by callback.
Remarks
The callback will be called immediately if the are no uninterruptable activity by user or another plugin, otherwise this method will wait until the screen becomes idle.
See Also