Interface IAsyncDicomCStoreProvider
Interface for an asynchronous DICOM C-STORE Service Class Provider.
Namespace: Dicom.Network
Assembly: cs.temp.dll.dll
Syntax
public interface IAsyncDicomCStoreProvider
Methods
OnCStoreRequestAsync(DicomCStoreRequest)
Callback for each Sop Instance received. The default implementation of DicomService is to write a temporary file that is automatically deleted for each SopInstance received. See the documentation for DicomService.CreateCStoreReceiveStream() and DicomService.GetCStoreDicomFile() for information about changing this behavior (e.g. writing to your own custom stream and avoiding the temporary file)
Declaration
Task<DicomCStoreResponse> OnCStoreRequestAsync(DicomCStoreRequest request)
Parameters
Type | Name | Description |
---|---|---|
DicomCStoreRequest | request | C-STORE request. |
Returns
Type | Description |
---|---|
Task<DicomCStoreResponse> | C-STORE response. |
OnCStoreRequestExceptionAsync(String, Exception)
Callback for exceptions raised during the parsing of the received SopInstance. Note that it is possible to avoid parsing the file by overriding DicomService.GetCStoreDicomFile() if desired.
Declaration
Task OnCStoreRequestExceptionAsync(string tempFileName, Exception e)
Parameters
Type | Name | Description |
---|---|---|
String | tempFileName | Name of the temporary file, may be null. |
Exception | e | Thrown exception. |
Returns
Type | Description |
---|---|
Task |