Пример #1
0
 public void SetStatusAsCreated(Uri locationUri)
 {
     context.SetStatusAsCreated(locationUri);
 }
    private void SetStatusAsCreated(FileResource file)
    {
        var location = new Uri(m_Request.UriTemplateMatch.RequestUri.AbsoluteUri + "/" + file.Id);

        m_Response.SetStatusAsCreated(location);
    }
 public void SetStatusAsCreated(Uri locationUri)
 {
     _outgoingResponse.SetStatusAsCreated(locationUri);
 }
Пример #4
0
 // Summary:
 //     Sets the HTTP status code of the outgoing Web response to System.Net.HttpStatusCode.Created
 //     and sets the Location header to the provided URI.
 //
 // Parameters:
 //   locationUri:
 //     The System.Uri instance to the requested resource.
 public void SetStatusAsCreated(Uri locationUri)
 {
     response.SetStatusAsCreated(locationUri);
 }