ChatClient/ChatClient.cs
/// <summary>
/// Adds a stream marker with the specified description.
/// </summary>
/// <param name="description">The description text.</param>
/// <param name="channelName">The name of the channel; default: sole connected channel.</param>
/// <returns>False if error.</returns>
Adds a stream marker with the specified description.
Adds a stream marker with the specified description .
public bool AddStreamMarker(string? description, string? channelName = null) {
            if (string.IsNullOrEmpty(description)) {
                LogLine($"null/empty {nameof(description)}", LogLevel.Warn);
                return false;
            }
            channelName = GetValidChannelName(channelName);
            if (string.IsNullOrEmpty(channelName)) {
                LogLine($"null/empty {nameof(channelName)}", LogLevel.Error);
                return false;
            }
            if (!SendMessage($"/marker {description}")) {
                LogLine($"Failed to add stream marker: {description}", LogLevel.Error);
                return false;
            }
            LogLine($"Added stream marker: {description}", LogLevel.Info);
            return true;
        }
public bool AddStreamMarker ( string ? description , string ? channelName = null ) { if ( string . IsNullOrEmpty ( description ) ) { LogLine ( $" null/empty  { nameof ( description ) } " , LogLevel . Warn ) ; return false ; } channelName = GetValidChannelName ( channelName ) ; if ( string . IsNullOrEmpty ( channelName ) ) { LogLine ( $" null/empty  { nameof ( channelName ) } " , LogLevel . Error ) ; return false ; } if ( ! SendMessage ( $" /marker  { description } " ) ) { LogLine ( $" Failed to add stream marker:  { description } " , LogLevel . Error ) ; return false ; } LogLine ( $" Added stream marker:  { description } " , LogLevel . Info ) ; return true ; }
Adds a stream marker with the specified description.
Adds a stream marker with the specified description .
False if error.
False if error .
description
string?
The description text.
The description text .
channelName
string?
The name of the channel; default: sole connected channel.
The name of the channel ; default : sole connected channel .