/// <summary> /// Get conformance /// </summary> public CapabilityStatement GetOptions() { this.ThrowIfNotReady(); var retVal = ConformanceUtil.GetConformanceStatement(); RestOperationContext.Current.OutgoingResponse.Headers.Add("Content-Location", String.Format("{0}metadata", RestOperationContext.Current.IncomingRequest.Url)); RestOperationContext.Current.OutgoingResponse.StatusCode = (int)HttpStatusCode.OK; return(retVal); }
public Conformance GetOptions() { this.ThrowIfNotReady(); var retVal = ConformanceUtil.GetConformanceStatement(); WebOperationContext.Current.OutgoingResponse.Headers.Add("Content-Location", String.Format("{0}Conformance/{1}/_history/{2}", WebOperationContext.Current.IncomingRequest.UriTemplateMatch.BaseUri, retVal.Id, retVal.VersionId)); WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.OK; WebOperationContext.Current.OutgoingResponse.Headers.Remove("Content-Disposition"); WebOperationContext.Current.OutgoingResponse.Headers.Add("Content-Disposition", "filename=\"conformance.xml\""); return(retVal); }