Class GrpcLocalHostSection
Holds information about a host section from the local $/etc/hosts file as returned for a GrpcListLocalHostsSectionsRequest within a GrpcListLocalHostsSectionsReply.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
public class GrpcLocalHostSection
Constructors
GrpcLocalHostSection()
Default constructor.
Declaration
public GrpcLocalHostSection()
GrpcLocalHostSection(LocalHostSection?)
Constructs an instance using the sections passed.
Declaration
public GrpcLocalHostSection(LocalHostSection? section)
Parameters
Type | Name | Description |
---|---|---|
LocalHostSection | section | The LocalHostSection instance being wrapped. |
Properties
HostEntries
The map of hostnames to IP addresses.
Declaration
[DataMember(Order = 2)]
public Dictionary<string, IPAddress>? HostEntries { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, IPAddress> |
Name
The host section name.
Declaration
[DataMember(Order = 1)]
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ToLocalHostSection()
Converts this GrpcLocalHostSection into a LocalHostSection.
Declaration
public LocalHostSection ToLocalHostSection()
Returns
Type | Description |
---|---|
LocalHostSection | The converted LocalHostSection. |