Action
Direct Subclass:
Indirect Subclass:
DeleteAction, GetAction, LocalDefinePropertyAction, LocalDeletePropertyAction, LocalPreventExtensionsAction, LocalReferenceAction, LocalSetPrototypeOfAction, ReferencePropertyAction, ReflectApplyAction, ReflectConstructAction, ReflectGetAction, ReflectPromiseAction, RemoteDefinePropertyAction, RemoteDeletePropertyAction, RemotePreventExtensionsAction, RemoteReferenceAction, RemoteSetAction, RemoteSetFunctionAction, RemoteSetObjectAction, RemoteSetPropertyCacheAction, RemoteSetPropertyCacheAction, RemoteSetPrototypeOfAction, RemoteSetSymbolAction
Example:
import { Action } from 'remote-protocol';
const action = new Action();Method Summary
| Public Methods | ||
| public | Execute the action. | |
| public | Fetch the action value. | |
| public | Returns an arguments list for creating this instance remotely. | |
| public | Get a string that represent this class. | |
Public Methods
public exec(session: Session): undefined | Promise source
Execute the action.
Params:
| Name | Type | Attribute | Description | 
| session | Session | The current action session | 
Throw:
| If there is a reason to close the session | 
public fetch(session: Session): * source
Fetch the action value.
Params:
| Name | Type | Attribute | Description | 
| session | Session | The current action session | 
Return:
| * | The action value | 
Throw:
| If there is any error | 
 
    
  