|
LogicalThreadOperationExecuteAction Method
|
Executes an action once on the current thread.
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic void ExecuteAction(
Action action
)
Public Sub ExecuteAction (
action As Action
)
public:
void ExecuteAction(
Action^ action
)
member ExecuteAction :
action : Action -> unit function ExecuteAction(action);
View SourceParameters
- action Action
- Action to run on current thread.
Remarks
This method provides exception handling for the action passed into this
method with a couple of guarantees. The first is that regardless of what
thread is executing the action passed into this method, the exception
will be raised on the thread that the logical operation runs on. The
second is that the RunIfPending method will be called if an exception
does occur in the given action.
See Also