Example #1
0
        public IObservable<Unit> Execute(ExecutionContext context)
        {
            Ensure.ArgumentNotNull(context, nameof(context));

            return context
                .WaitWhilePaused()
                .SelectMany(_ => this.speechService.Speak(this.speechText))
                .FirstAsync();
        }