/// <summary> /// Initializes a new instance of the <see cref="SpeechErrorEventArgs"/> class. /// </summary> /// <param name="speechErrorCode">The error code.</param> /// <param name="speechErrorText">The error text.</param> internal SpeechErrorEventArgs(SpeechClientStatus speechErrorCode, string speechErrorText) { this.speechErrorCode = speechErrorCode; this.speechErrorText = speechErrorText; }
/// <summary> /// Raises a ConversationError event. /// </summary> /// <param name="errorCode">The error code.</param> /// <param name="message">The message for the event.</param> private void RaiseOnConversationError(SpeechClientStatus errorCode, string message) { this.OnConversationError?.Invoke(this, new SpeechErrorEventArgs(errorCode, message)); }