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
value
byte[]mode
RedisChannel.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
value
stringmode
RedisChannel.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
other
RedisChannel
Returns
Equals(object)
See Object.Equals
public override bool Equals(object obj)
Parameters
obj
object
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
x
RedisChannely
byte[]
Returns
operator ==(RedisChannel, string)
Indicate whether two channel names are equal
public static bool operator ==(RedisChannel x, string y)
Parameters
x
RedisChannely
string
Returns
operator ==(byte[], RedisChannel)
Indicate whether two channel names are equal
public static bool operator ==(byte[] x, RedisChannel y)
Parameters
x
byte[]y
RedisChannel
Returns
operator ==(string, RedisChannel)
Indicate whether two channel names are equal
public static bool operator ==(string x, RedisChannel y)
Parameters
x
stringy
RedisChannel
Returns
implicit operator byte[](RedisChannel)
Obtain the channel name as a Byte[]
public static implicit operator byte[](RedisChannel key)
Parameters
key
RedisChannel
Returns
- byte[]
implicit operator string(RedisChannel)
Obtain the channel name as a String
public static implicit operator string(RedisChannel key)
Parameters
key
RedisChannel
Returns
implicit operator RedisChannel(byte[])
Create a channel name from a Byte[]
public static implicit operator RedisChannel(byte[] key)
Parameters
key
byte[]
Returns
implicit operator RedisChannel(string)
Create a channel name from a String
public static implicit operator RedisChannel(string key)
Parameters
key
string
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
x
RedisChannely
byte[]
Returns
operator !=(RedisChannel, string)
Indicate whether two channel names are not equal
public static bool operator !=(RedisChannel x, string y)
Parameters
x
RedisChannely
string
Returns
operator !=(byte[], RedisChannel)
Indicate whether two channel names are not equal
public static bool operator !=(byte[] x, RedisChannel y)
Parameters
x
byte[]y
RedisChannel
Returns
operator !=(string, RedisChannel)
Indicate whether two channel names are not equal
public static bool operator !=(string x, RedisChannel y)
Parameters
x
stringy
RedisChannel