HostnameService Class
Namespace: PTS.Modules.Hostnames.Common
Assembly: PTS.Modules.Hostnames.dll
Syntax
public class HostnameService : SingleRepositoryService<Hostname>, IServiceProviderAccessor, IHostnameService, ISeedWork<IHostnameService>, ISeedWork
Inheritance
System.Object
HostnameService
Constructors
HostnameService(IUnitOfWork)
Declaration
public HostnameService(IUnitOfWork unitOfWork)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | unitOfWork |
Methods
GetByHostname(String)
Gets the Hostname by the hostname
.
Declaration
public virtual Hostname GetByHostname(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname | The hostname. |
Returns
Type | Description |
---|---|
Hostname |
GetByHostnameAsync(String)
Gets the Hostname by the hostname
.
Declaration
public virtual Task<Hostname> GetByHostnameAsync(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname | The hostname. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Hostname> |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()