IHostnameService Interface
Namespace: PTS.Modules.Hostnames.Domain
Assembly: PTS.Modules.Hostnames.dll
Syntax
public interface IHostnameService
Methods
GetByHostname(String)
Gets the Hostname by the hostname
.
Declaration
Hostname GetByHostname(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname | The hostname. |
Returns
Type | Description |
---|---|
Hostname | The hostname entity. |
GetByHostnameAsync(String)
Gets the Hostname asynchronously by the hostname
.
Declaration
Task<Hostname> GetByHostnameAsync(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname | The hostname. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Hostname> | The hostname entity. |