@@ -36,10 +36,10 @@ namespace MyCommandPlugin
3636{
3737 public class MyCommand : ICommand
3838 {
39- public CommandResult Run ()
39+ public void Run ()
4040 {
4141 Console .WriteLine (" Hello, world!" );
42- return new CommandResult (true );
42+ return new void (true );
4343 }
4444 }
4545}
@@ -56,10 +56,10 @@ namespace MyCommandPlugin
5656{
5757 public class MyCommand : AbstractCommand
5858 {
59- public override CommandResult Run ()
59+ public override void Run ()
6060 {
6161 Console .WriteLine (" Hello, world!" );
62- return new CommandResult (true );
62+ return new void (true );
6363 }
6464 }
6565}
@@ -188,7 +188,7 @@ IWrite Line(string val);
188188```
189189
190190``` c#
191- public override CommandResult Run ()
191+ public override void Run ()
192192{
193193 Info (" Display some information" );
194194}
@@ -215,15 +215,15 @@ Line("This is a plain line.");
215215The ** InEngine.Core.AbstractCommand** class provides a Logger property. It implements the ** NLog.ILogger** interface.
216216
217217``` c#
218- public override CommandResult Run ()
218+ public override void Run ()
219219{
220220 Logger .Trace (" Sample trace message" );
221221 Logger .Debug (" Sample debug message" );
222222 Logger .Info (" Sample informational message" );
223223 Logger .Warn (" Sample warning message" );
224224 Logger .Error (" Sample error message" );
225225 Logger .Fatal (" Sample fatal error message" );
226- return new CommandResult (true );
226+ return new void (true );
227227}
228228```
229229
@@ -251,7 +251,7 @@ Setup an [NLog configuration](https://github.com/NLog/NLog/wiki/Tutorial#configu
251251The ** InEngine.Core.AbstractCommand** class provides a ProgressBar property. This is how it is used.
252252
253253``` c#
254- public override CommandResult Run ()
254+ public override void Run ()
255255{
256256 // Define the ticks (aka steps) for the command...
257257 var maxTicks = 100000 ;
@@ -264,7 +264,7 @@ public override CommandResult Run()
264264 UpdateProgress (i );
265265 }
266266
267- return new CommandResult (true );
267+ return new void (true );
268268}
269269```
270270
0 commit comments