-
Notifications
You must be signed in to change notification settings - Fork 11
Messages
CheshireCaat edited this page Feb 7, 2020
·
10 revisions
You can send custom messages to your script using BasRemoteClient
. It's very useful if you want to perform actions like:
- Retrieve results/logs.
- Set/get global variables.
- Show/hide browsers. and other different actions.
If you want to send message and perform any action on result of this message, you can use SendAsync()
method. It contains also many overrides with different arguments, so you can create any logic as you want. With this method you can pass custom callback for message response and perform any actions with this. You can also use SendAndWaitAsync()
to do this using Task
class and await
keyword. In this case response of your message will be contains in task result.
Take a look at examples.