/// <summary> /// Create a new redis channel from a string, explicitly controlling the pattern mode. /// </summary> /// <param name="value">The string name of the channel to create.</param> /// <param name="mode">The mode for name matching.</param> public RedisChannel(string value, PatternMode mode) : this(value == null ? null : Encoding.UTF8.GetBytes(value), mode) { }
/// <summary> /// Create a new redis channel from a buffer, explicitly controlling the pattern mode. /// </summary> /// <param name="value">The name of the channel to create.</param> /// <param name="mode">The mode for name matching.</param> public RedisChannel(byte[] value, PatternMode mode) : this(value, DeterminePatternBased(value, mode)) { }