Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Update CommandSequence sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Briguglia committed Dec 21, 2019
1 parent 820f2ba commit 40cd2c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions samples/Kledex.Sample.CommandSequence/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Kledex.Extensions;
using Kledex.Sample.CommandSequence.Commands;
using Kledex.Validation.FluentValidation;
using Kledex.Utilities;

namespace Kledex.Sample.CommandSequence
{
Expand All @@ -14,9 +15,7 @@ static void Main(string[] args)

var dispatcher = serviceProvider.GetService<IDispatcher>();

var result = dispatcher
.SendAsync<string>(new SampleCommandSequence())
.GetAwaiter().GetResult();
var result = AsyncUtil.RunSync(() => dispatcher.SendAsync<string>(new SampleCommandSequence()));

Console.WriteLine($"Final result: {result}");

Expand Down

0 comments on commit 40cd2c0

Please sign in to comment.