Home Notices Documents Classes Download Others Rice
Classes  >  ehswitch
ehswitch class

Description

Represents a switch to control execution of event handler.

Notes

It is a class that is statically included in the CookerGX.

fitter

SignatureDescription
ehswitch()

Get a new instance of ehswitch class.

getter

SignatureDescription
ErrorMessages

Get a list of error messages that occurred in the previous execution of the handler.

Fitted

Gets the value that indicates whether this instance was already initialized.

Handler

Gets an instance of an user defined class that have the eventhandler method.

IsEnabled

Gets a value that indicates whether the eventhandler is running.

IsError

Gets a value that indicates whether the last execution of the handler finished with the exception.

ShowException

Gets a value that indicates whether the error messages will be shown if the execution of the handler finished with the exception.

Signature

Gets the signature for calling the handler method.

StopWithException

Gets a value that indicates whether the eventhandler will automatically be stopped if the execution finished with the exception.

TypeName

Gets the type name.

setter

SignatureDescription
Handler(anyclass)

Sets an instance of an user defined class that have the eventhandler method.

ShowException(bool)

Sets a value that indicates whether the error messages will be shown if the execution of the handler finished with the exception.

Signature(string)

Sets the signature for calling the handler method.

StopWithException(bool)

Sets a value that indicates whether the eventhandler will automatically be stopped if the execution finished with the exception.

method

SignatureDescription
OneShot()

Executes the handler only once.

Start()

Starts the execution of the eventhandler.

Stop()

Stops the execution of the event handler.

Copyright © Rice All rights reserved.