Sisk

Class

ListeningHostRepository

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

Represents an fluent repository of ListeningHost that can add, modify, or remove listening hosts while an HttpServer is running.

C#
public sealed class ListeningHostRepository : IList<ListeningHost>, ICollection<ListeningHost>, IEnumerable<ListeningHost>, IEnumerable

Inheritance #

object ← ListeningHostRepository

Implements #

IList<ListeningHost>, ICollection<ListeningHost>, IEnumerable<ListeningHost>, IEnumerable

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
ListeningHostRepository()Creates a new instance of an empty ListeningHostRepository.
ListeningHostRepository(IEnumerable<ListeningHost>)Creates a new instance of an ListeningHostRepository copying the items from another collection of ListeningHost.

Properties #

NameDescription
CountGets the number of elements contained in this ListeningHostRepository.
IsReadOnlyGets an boolean indicating if this ListeningHostRepository is read only. This property always returns false.
this[int]

Methods #

NameDescription
Add(ListeningHost)Adds a listeninghost to this repository. If this listeninghost already exists in this class, an exception will be thrown.
Clear()Removes all listeninghosts from this repository.
Contains(ListeningHost)Determines if an ListeningHost is present in this repository.
CopyTo(ListeningHost[], int)Copies all elements from this repository to another compatible repository.
GetEnumerator()Returns an enumerator that iterates through this ListeningHostRepository.
IndexOf(ListeningHost)
Insert(int, ListeningHost)
Remove(ListeningHost)Try to remove a ListeningHost from this repository. If the item is removed, this methods returns true.
RemoveAt(int)

Type to search the documentation and the API reference.