Browse Source

Simplify RuntimeResult section

pull/988/head
Hsu Still 7 years ago
parent
commit
f694b7f847
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 9 additions and 13 deletions
  1. +9
    -13
      docs/guides/commands/post-execution.md

+ 9
- 13
docs/guides/commands/post-execution.md View File

@@ -52,19 +52,15 @@ next? We can take this further by using [RuntimeResult].


### RuntimeResult ### RuntimeResult


This class was introduced in 1.0, but it wasn't widely adopted due to
the aforementioned [ExecuteAsync] drawback. Since we now have
access to a proper result-handler via the [CommandExecuted] event,
we can start making use of this class.

#### What is it?

`RuntimeResult` was introduced to allow developers to centralize
their command result logic. In other words, it is a result type
that is designed to be returned when the command has finished its
execution.

#### How to make use of it?
`RuntimeResult` was originally introduced in 1.0 to allow
developers to centralize their command result logic.
In other words, it is a result type that is designed to be
returned when the command has finished its execution.

However, it wasn't widely adopted due to the aforementioned
[ExecuteAsync] drawback. Since we now have access to a proper
result-handler via the [CommandExecuted] event, we can start
making use of this class.


The best way to make use of it is to create your own version of The best way to make use of it is to create your own version of
`RuntimeResult`. You can achieve this by inheriting the `RuntimeResult` `RuntimeResult`. You can achieve this by inheriting the `RuntimeResult`


Loading…
Cancel
Save