Table of Contents

Class EndPointCollection

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

A list of endpoints

public sealed class EndPointCollection : Collection<EndPoint>, IList<EndPoint>, ICollection<EndPoint>, IList, ICollection, IReadOnlyList<EndPoint>, IReadOnlyCollection<EndPoint>, IEnumerable<EndPoint>, IEnumerable
Inheritance
EndPointCollection
Implements
Inherited Members

Constructors

EndPointCollection()

Create a new EndPointCollection

public EndPointCollection()

EndPointCollection(IList<EndPoint>)

Create a new EndPointCollection

public EndPointCollection(IList<EndPoint> endpoints)

Parameters

endpoints IList<EndPoint>

Methods

Add(IPAddress, int)

Adds a new endpoint to the list

public void Add(IPAddress host, int port)

Parameters

host IPAddress
port int

Add(string)

Adds a new endpoint to the list

public void Add(string hostAndPort)

Parameters

hostAndPort string

Add(string, int)

Adds a new endpoint to the list

public void Add(string host, int port)

Parameters

host string
port int

InsertItem(int, EndPoint)

See Collection<T>.InsertItem()

protected override void InsertItem(int index, EndPoint item)

Parameters

index int
item EndPoint

SetItem(int, EndPoint)

See Collection<T>.SetItem()

protected override void SetItem(int index, EndPoint item)

Parameters

index int
item EndPoint

ToString(EndPoint)

Format an endpoint

public static string ToString(EndPoint endpoint)

Parameters

endpoint EndPoint

Returns

string

TryParse(string)

Attempt to parse a string into an EndPoint

public static EndPoint TryParse(string endpoint)

Parameters

endpoint string

Returns

EndPoint