public RestMSDomain Get(string name)
        {
            //TODO: Get needs Last Modified and ETag.
            var domainRetriever = new DomainRetriever(domainRepository, feedRepository, pipeRepository);

            return(domainRetriever.Retrieve(new Name(name)));
        }
Exemple #2
0
        HttpResponseMessage BuildDomainItemCreatedReponse(string domainName)
        {
            var domainRetriever = new DomainRetriever(domainRepository, feedRepository, pipeRepository);
            var item            = domainRetriever.Retrieve(new Name(domainName));
            var response        = Request.CreateResponse <RestMSDomain>(HttpStatusCode.Created, item);

            response.Headers.Location = new Uri(item.Href);
            return(response);
        }
Exemple #3
0
        public RestMSDomain Get(string name)
        {
            var domainRetriever = new DomainRetriever(domainRepository, feedRepository, pipeRepository);

            return(domainRetriever.Retrieve(new Name(name)));
        }