C# Класс Spark.Engine.Extensions.HttpRequestFhirExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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