示例#1
0
 /// <summary>
 /// Create a channel
 /// </summary>
 /// <param name="messenger"></param>
 /// <param name="channelName"></param>
 /// <param name="cancellationToken"></param>
 /// <returns></returns>
 public static Task CreateChannelAsync(this IMessenger messenger, string channelName, CancellationToken cancellationToken = default)
 {
     return(messenger.CreateChannelsAsync(new[] { channelName }, cancellationToken));
 }