Class DicomCStoreRequest
Represents a DICOM C-Store request to be sent to a C-Store SCP or a C-Store request that has been received from a C-Store SCU.
Inherited Members
Namespace: Dicom.Network
Assembly: cs.temp.dll.dll
Syntax
public sealed class DicomCStoreRequest : DicomPriorityRequest
  Examples
The following example shows how to use the DicomClient class to send DICOM C-Store requests to a DICOM C-Store SCP.
var client = new DicomClient();
// queue C-Store request to send DICOM file
client.Add(new DicomCStoreRequest(@"test1.dcm") {
	OnResponseReceived = (DicomCStoreRequest req, DicomCStoreResponse rsp) => {
		Console.WriteLine("{0}: {1}", req.SOPInstanceUID, rsp.Status);
	}
});
// queue C-Store request with additional proposed transfer syntaxes
client.Add(new DicomCStoreRequest(@"test2.dcm") {
	AdditionalTransferSyntaxes = new DicomTransferSyntax[] {
		DicomTransferSyntax.JPEGLSLossless,
		DicomTransferSyntax.JPEG2000Lossless
	}
});
// connect and send queued requests
client.Send("127.0.0.1", 12345, false, "SCU", "ANY-SCP");
  Constructors
DicomCStoreRequest(DicomDataset)
Constructor for DICOM C-Store request received from SCU.
Declaration
public DicomCStoreRequest(DicomDataset command)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DicomDataset | command | DICOM Command Dataset  | 
      
Remarks
In most use cases this constructor will only be called by the library.
DicomCStoreRequest(DicomFile, DicomPriority)
Initializes DICOM C-Store request to be sent to SCP.
Declaration
public DicomCStoreRequest(DicomFile file, DicomPriority priority = DicomPriority.Medium)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DicomFile | file | DICOM file to be sent  | 
      
| DicomPriority | priority | Priority of request  | 
      
DicomCStoreRequest(String, DicomPriority)
Initializes DICOM C-Store request to be sent to SCP.
Declaration
public DicomCStoreRequest(string fileName, DicomPriority priority = DicomPriority.Medium)
  Parameters
| Type | Name | Description | 
|---|---|---|
| String | fileName | DICOM file to be sent  | 
      
| DicomPriority | priority | Priority of request  | 
      
Fields
OnResponseReceived
Delegate to be executed when the response for the DICOM C-Store request is received.
Declaration
public DicomCStoreRequest.ResponseDelegate OnResponseReceived
  Field Value
| Type | Description | 
|---|---|
| DicomCStoreRequest.ResponseDelegate | 
Properties
AdditionalTransferSyntaxes
Additional transfer syntaxes to propose in the association request.
DICOM dataset will be transcoded on the fly if necessary.
Declaration
public DicomTransferSyntax[] AdditionalTransferSyntaxes { get; set; }
  Property Value
| Type | Description | 
|---|---|
| DicomTransferSyntax[] | 
CommonServiceClassUid
Gets or sets the (optional) Common Extended Negotiation Service Class UID.
Declaration
public DicomUID CommonServiceClassUid { get; set; }
  Property Value
| Type | Description | 
|---|---|
| DicomUID | 
File
Gets the DICOM file associated with this DICOM C-Store request.
Declaration
public DicomFile File { get; }
  Property Value
| Type | Description | 
|---|---|
| DicomFile | 
RelatedGeneralSopClasses
Gets or sets the (optional) Common Extended Negotiation Related General SOP Class Identification
Declaration
public List<DicomUID> RelatedGeneralSopClasses { get; set; }
  Property Value
| Type | Description | 
|---|---|
| List<DicomUID> | 
SOPInstanceUID
Gets the SOP Instance UID of the DICOM file associated with this DICOM C-Store request.
Declaration
public DicomUID SOPInstanceUID { get; }
  Property Value
| Type | Description | 
|---|---|
| DicomUID | 
TransferSyntax
Gets the transfer syntax of the DICOM file associated with this DICOM C-Store request.
Declaration
public DicomTransferSyntax TransferSyntax { get; }
  Property Value
| Type | Description | 
|---|---|
| DicomTransferSyntax | 
Methods
PostResponse(DicomService, DicomResponse)
Internal. Executes the DICOM C-Store response callback.
Declaration
protected override void PostResponse(DicomService service, DicomResponse response)
  Parameters
| Type | Name | Description | 
|---|---|---|
| DicomService | service | DICOM SCP implementation  | 
      
| DicomResponse | response | Received DICOM response  |