Struct RedisChannel
- Namespace
- StackExchange.Redis
- Assembly
- StackExchange.Redis.StrongName.dll
Represents a pub/sub channel name
public struct RedisChannel : IEquatable<RedisChannel>
- Implements
- Inherited Members
Constructors
RedisChannel(byte[], PatternMode)
Create a new redis channel from a buffer, explicitly controlling the pattern mode
public RedisChannel(byte[] value, RedisChannel.PatternMode mode)
Parameters
valuebyte[]modeRedisChannel.PatternMode
RedisChannel(string, PatternMode)
Create a new redis channel from a string, explicitly controlling the pattern mode
public RedisChannel(string value, RedisChannel.PatternMode mode)
Parameters
valuestringmodeRedisChannel.PatternMode
Properties
IsNullOrEmpty
Indicates whether the channel-name is either null or a zero-length value
public bool IsNullOrEmpty { get; }
Property Value
Methods
Equals(RedisChannel)
Indicate whether two channel names are equal
public bool Equals(RedisChannel other)
Parameters
otherRedisChannel
Returns
Equals(object)
See Object.Equals
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
See Object.GetHashCode
public override int GetHashCode()
Returns
ToString()
Obtains a string representation of the channel name
public override string ToString()
Returns
Operators
operator ==(RedisChannel, RedisChannel)
Indicate whether two channel names are equal
public static bool operator ==(RedisChannel x, RedisChannel y)
Parameters
Returns
operator ==(RedisChannel, byte[])
Indicate whether two channel names are equal
public static bool operator ==(RedisChannel x, byte[] y)
Parameters
xRedisChannelybyte[]
Returns
operator ==(RedisChannel, string)
Indicate whether two channel names are equal
public static bool operator ==(RedisChannel x, string y)
Parameters
xRedisChannelystring
Returns
operator ==(byte[], RedisChannel)
Indicate whether two channel names are equal
public static bool operator ==(byte[] x, RedisChannel y)
Parameters
xbyte[]yRedisChannel
Returns
operator ==(string, RedisChannel)
Indicate whether two channel names are equal
public static bool operator ==(string x, RedisChannel y)
Parameters
xstringyRedisChannel
Returns
implicit operator byte[](RedisChannel)
Obtain the channel name as a Byte[]
public static implicit operator byte[](RedisChannel key)
Parameters
keyRedisChannel
Returns
- byte[]
implicit operator string(RedisChannel)
Obtain the channel name as a String
public static implicit operator string(RedisChannel key)
Parameters
keyRedisChannel
Returns
implicit operator RedisChannel(byte[])
Create a channel name from a Byte[]
public static implicit operator RedisChannel(byte[] key)
Parameters
keybyte[]
Returns
implicit operator RedisChannel(string)
Create a channel name from a String
public static implicit operator RedisChannel(string key)
Parameters
keystring
Returns
operator !=(RedisChannel, RedisChannel)
Indicate whether two channel names are not equal
public static bool operator !=(RedisChannel x, RedisChannel y)
Parameters
Returns
operator !=(RedisChannel, byte[])
Indicate whether two channel names are not equal
public static bool operator !=(RedisChannel x, byte[] y)
Parameters
xRedisChannelybyte[]
Returns
operator !=(RedisChannel, string)
Indicate whether two channel names are not equal
public static bool operator !=(RedisChannel x, string y)
Parameters
xRedisChannelystring
Returns
operator !=(byte[], RedisChannel)
Indicate whether two channel names are not equal
public static bool operator !=(byte[] x, RedisChannel y)
Parameters
xbyte[]yRedisChannel
Returns
operator !=(string, RedisChannel)
Indicate whether two channel names are not equal
public static bool operator !=(string x, RedisChannel y)
Parameters
xstringyRedisChannel