C# Class Spark.Engine.Extensions.OperationOutcomeExtensions

ファイルを表示 Open project: raysearchlabs/spark

Public Methods

Method Description
AddError ( this outcome, string message ) : Hl7.Fhir.Model.OperationOutcome
AddMessage ( this outcome, HttpStatusCode code, string message ) : Hl7.Fhir.Model.OperationOutcome
AddMessage ( this outcome, string message ) : Hl7.Fhir.Model.OperationOutcome
Error ( this outcome, Exception exception ) : Hl7.Fhir.Model.OperationOutcome
Init ( this outcome ) : Hl7.Fhir.Model.OperationOutcome
ToHttpResponseMessage ( this outcome, ResourceFormat target, HttpRequestMessage request ) : HttpResponseMessage

Private Methods

Method Description
AddIssue ( this outcome, Hl7.Fhir.Model.OperationOutcome severity, string message ) : Hl7.Fhir.Model.OperationOutcome
IssueSeverityOf ( HttpStatusCode code ) : OperationOutcome.IssueSeverity
setContentHeaders ( HttpResponseMessage response, ResourceFormat format ) : void

Method Details

AddError() public static method

public static AddError ( this outcome, string message ) : Hl7.Fhir.Model.OperationOutcome
outcome this
message string
return Hl7.Fhir.Model.OperationOutcome

AddMessage() public static method

public static AddMessage ( this outcome, HttpStatusCode code, string message ) : Hl7.Fhir.Model.OperationOutcome
outcome this
code HttpStatusCode
message string
return Hl7.Fhir.Model.OperationOutcome

AddMessage() public static method

public static AddMessage ( this outcome, string message ) : Hl7.Fhir.Model.OperationOutcome
outcome this
message string
return Hl7.Fhir.Model.OperationOutcome

Error() public static method

public static Error ( this outcome, Exception exception ) : Hl7.Fhir.Model.OperationOutcome
outcome this
exception System.Exception
return Hl7.Fhir.Model.OperationOutcome

Init() public static method

public static Init ( this outcome ) : Hl7.Fhir.Model.OperationOutcome
outcome this
return Hl7.Fhir.Model.OperationOutcome

ToHttpResponseMessage() public static method

public static ToHttpResponseMessage ( this outcome, ResourceFormat target, HttpRequestMessage request ) : HttpResponseMessage
outcome this
target ResourceFormat
request System.Net.Http.HttpRequestMessage
return System.Net.Http.HttpResponseMessage