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
Methods
Add(IPAddress, int)
Adds a new endpoint to the list
public void Add(IPAddress host, int port)
Parameters
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
InsertItem(int, EndPoint)
See Collection<T>.InsertItem()
protected override void InsertItem(int index, EndPoint item)
Parameters
SetItem(int, EndPoint)
See Collection<T>.SetItem()
protected override void SetItem(int index, EndPoint item)
Parameters
ToString(EndPoint)
Format an endpoint
public static string ToString(EndPoint endpoint)
Parameters
endpoint
EndPoint
Returns
TryParse(string)
Attempt to parse a string into an EndPoint
public static EndPoint TryParse(string endpoint)
Parameters
endpoint
string