Example #1
0
 /// <summary>
 /// Cancels this message if Playing or Enqueued.
 /// </summary>
 public void Cancel()
 {
     if (null == _ttsSubSystem)
     {
         throw new InvalidOperationException($"{GetType().Name}: message is not Playing or Enqueued.");
     }
     else
     {
         _ttsSubSystem.CancelMessage(this);
     }
 }