Table of Contents

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 string
mode RedisChannel.PatternMode

Properties

IsNullOrEmpty

Indicates whether the channel-name is either null or a zero-length value

public bool IsNullOrEmpty { get; }

Property Value

bool

Methods

Equals(RedisChannel)

Indicate whether two channel names are equal

public bool Equals(RedisChannel other)

Parameters

other RedisChannel

Returns

bool

Equals(object)

See Object.Equals

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

See Object.GetHashCode

public override int GetHashCode()

Returns

int

ToString()

Obtains a string representation of the channel name

public override string ToString()

Returns

string

Operators

operator ==(RedisChannel, RedisChannel)

Indicate whether two channel names are equal

public static bool operator ==(RedisChannel x, RedisChannel y)

Parameters

x RedisChannel
y RedisChannel

Returns

bool

operator ==(RedisChannel, byte[])

Indicate whether two channel names are equal

public static bool operator ==(RedisChannel x, byte[] y)

Parameters

x RedisChannel
y byte[]

Returns

bool

operator ==(RedisChannel, string)

Indicate whether two channel names are equal

public static bool operator ==(RedisChannel x, string y)

Parameters

x RedisChannel
y string

Returns

bool

operator ==(byte[], RedisChannel)

Indicate whether two channel names are equal

public static bool operator ==(byte[] x, RedisChannel y)

Parameters

x byte[]
y RedisChannel

Returns

bool

operator ==(string, RedisChannel)

Indicate whether two channel names are equal

public static bool operator ==(string x, RedisChannel y)

Parameters

x string
y RedisChannel

Returns

bool

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

string

implicit operator RedisChannel(byte[])

Create a channel name from a Byte[]

public static implicit operator RedisChannel(byte[] key)

Parameters

key byte[]

Returns

RedisChannel

implicit operator RedisChannel(string)

Create a channel name from a String

public static implicit operator RedisChannel(string key)

Parameters

key string

Returns

RedisChannel

operator !=(RedisChannel, RedisChannel)

Indicate whether two channel names are not equal

public static bool operator !=(RedisChannel x, RedisChannel y)

Parameters

x RedisChannel
y RedisChannel

Returns

bool

operator !=(RedisChannel, byte[])

Indicate whether two channel names are not equal

public static bool operator !=(RedisChannel x, byte[] y)

Parameters

x RedisChannel
y byte[]

Returns

bool

operator !=(RedisChannel, string)

Indicate whether two channel names are not equal

public static bool operator !=(RedisChannel x, string y)

Parameters

x RedisChannel
y string

Returns

bool

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

bool

operator !=(string, RedisChannel)

Indicate whether two channel names are not equal

public static bool operator !=(string x, RedisChannel y)

Parameters

x string
y RedisChannel

Returns

bool