Exemplo n.º 1
0
    public ServiceInstance GetService(string id)
    {
        var service = _serviceHostService.GetServices().FirstOrDefault(s => s.Id == id);

        if (service == null)
        {
            HttpContext.Response.StatusCode = (int)HttpStatusCode.NotFound;
        }

        return(service);
    }
Exemplo n.º 2
0
 public List <ServiceInstance> GetServices()
 {
     return(_serviceHostService.GetServices());
 }