C# 클래스 Spark.Engine.Extensions.HttpRequestFhirExtensions

파일 보기 프로젝트 열기: raysearchlabs/spark

공개 메소드들

메소드 설명
AcquireHeaders ( this response, Spark.Engine.Core.FhirResponse fhirResponse ) : void
CreateResponse ( this request, Spark.Engine.Core.FhirResponse fhir ) : HttpResponseMessage
GetBooleanParameter ( this request, string name ) : bool?
GetDateParameter ( this request, string name ) : DateTimeOffset?
GetEntry ( this request ) : Spark.Engine.Core.Interaction
GetIntParameter ( this request, string name ) : int?
GetValue ( this request, string key ) : string
IfMatchVersionId ( this request ) : string
IfModifiedSince ( this request ) : DateTimeOffset?
IfNoneMatch ( this request ) : IEnumerable
PreferRepresentation ( this request ) : bool
RequestSummary ( this request ) : bool
SaveEntry ( this request, Spark.Engine.Core.Interaction entry ) : void

Temporary hack! Adds a resourceEntry to the request property bag. To be picked up by the MediaTypeFormatters for adding http headers.

The SendAsync is called after the headers are set. The SetDefaultHeaders have no access to the content object. The only solution is to give the information through the Request Property Bag.

비공개 메소드들

메소드 설명
CreateBareFhirResponse ( this request, Spark.Engine.Core.FhirResponse fhir ) : HttpResponseMessage
WithoutQuotes ( string s ) : string

메소드 상세

AcquireHeaders() 공개 정적인 메소드

public static AcquireHeaders ( this response, Spark.Engine.Core.FhirResponse fhirResponse ) : void
response this
fhirResponse Spark.Engine.Core.FhirResponse
리턴 void

CreateResponse() 공개 정적인 메소드

public static CreateResponse ( this request, Spark.Engine.Core.FhirResponse fhir ) : HttpResponseMessage
request this
fhir Spark.Engine.Core.FhirResponse
리턴 System.Net.Http.HttpResponseMessage

GetBooleanParameter() 공개 정적인 메소드

public static GetBooleanParameter ( this request, string name ) : bool?
request this
name string
리턴 bool?

GetDateParameter() 공개 정적인 메소드

public static GetDateParameter ( this request, string name ) : DateTimeOffset?
request this
name string
리턴 DateTimeOffset?

GetEntry() 공개 정적인 메소드

public static GetEntry ( this request ) : Spark.Engine.Core.Interaction
request this
리턴 Spark.Engine.Core.Interaction

GetIntParameter() 공개 정적인 메소드

public static GetIntParameter ( this request, string name ) : int?
request this
name string
리턴 int?

GetValue() 공개 정적인 메소드

public static GetValue ( this request, string key ) : string
request this
key string
리턴 string

IfMatchVersionId() 공개 정적인 메소드

public static IfMatchVersionId ( this request ) : string
request this
리턴 string

IfModifiedSince() 공개 정적인 메소드

public static IfModifiedSince ( this request ) : DateTimeOffset?
request this
리턴 DateTimeOffset?

IfNoneMatch() 공개 정적인 메소드

public static IfNoneMatch ( this request ) : IEnumerable
request this
리턴 IEnumerable

PreferRepresentation() 공개 정적인 메소드

public static PreferRepresentation ( this request ) : bool
request this
리턴 bool

RequestSummary() 공개 정적인 메소드

public static RequestSummary ( this request ) : bool
request this
리턴 bool

SaveEntry() 공개 정적인 메소드

Temporary hack! Adds a resourceEntry to the request property bag. To be picked up by the MediaTypeFormatters for adding http headers.
The SendAsync is called after the headers are set. The SetDefaultHeaders have no access to the content object. The only solution is to give the information through the Request Property Bag.
public static SaveEntry ( this request, Spark.Engine.Core.Interaction entry ) : void
request this
entry Spark.Engine.Core.Interaction The resource entry with information to generate headers
리턴 void