C# Class Wado.Controllers.WadoUriController

Inheritance: ApiController
显示文件 Open project: fo-dicom/fo-dicom-samples

Public Methods

Method Description
WadoUriController ( ) : System

Initialize a new instance of WadoUriController

WadoUriController ( IDicomImageFinderService dicomImageFinderService ) : System

Testing purposes constructor if you want to inject a custom IDicomImageFinderService in unit tests

Private Methods

Method Description
ExtractContentTypesFromContentTypeParameter ( string contentType, string &contentTypes ) : bool

extract content type values (may have multiple values according to IETF RFC2616)

GetCompatibleContentTypesByOrderOfPreference ( string contentTypes, string acceptContentTypesHeader ) : string[]

Get the compatible content types from the Accept Header, by order of preference

GetStudyInstances ( HttpRequestMessage requestMessage, string requestType, string studyUID, string seriesUID, string objectUID, string contentType = null, string charset = null, string transferSyntax = null, string anonymize = null ) : Task
GetTransferSyntaxFromString ( string transferSyntax ) : Dicom.DicomTransferSyntax

Converts string dicom transfert syntax to DicomTransferSyntax enumeration

PickFinalContentType ( string compatibleContentTypesByOrderOfPreference, Dicom.DicomFile dicomFile ) : string

Choose the final content type given compatibleContentTypesByOrderOfPreference and dicomFile

ReturnImageAsHttpResponse ( Dicom.DicomFile dicomFile, string finalContentType, string transferSyntax ) : HttpResponseMessage

returns dicomFile in the content type given by finalContentType in a HttpResponseMessage. If content type is dicom, transfer syntax must be set to the given transferSyntax parameter.

Method Details

WadoUriController() public method

Initialize a new instance of WadoUriController
public WadoUriController ( ) : System
return System

WadoUriController() public method

Testing purposes constructor if you want to inject a custom IDicomImageFinderService in unit tests
public WadoUriController ( IDicomImageFinderService dicomImageFinderService ) : System
dicomImageFinderService IDicomImageFinderService
return System