コード例 #1
0
 protected ResourceResponseBase(HttpStatusCode httpStatusCode, IApiResource resource)
     : base(httpStatusCode)
 {
     var location = new ResourceLocation();
     resource.SetLocation(location);
     Headers.Location = location.Location;
 }
コード例 #2
0
        protected ResourceResponseBase(HttpStatusCode httpStatusCode, IApiResource resource) : base(httpStatusCode)
        {
            var location = new ResourceLocation();

            resource.SetLocation(location);
            Headers.Location = location.Location;
        }