←Select platform

OnNCreate2 Method

Summary

Allows the add-in to handle N-ACTION-REQ commands.

Syntax
C#
C++/CLI

Parameters

Client

The client that sent the command.

presentationID

The Presentation Context ID. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data.

messageID

The Message ID. Each message sent by a member of a connection should have a unique ID. Since a member of a connection may send several messages, this ID allows that member to identify when a specific request has been completed.

affectedClass

The class affected by the request. This will be a SOP Class or a Meta SOP Class.

instance

The instance of the class. A server may, for example, have three instances of the Nuclear Medicine Class. This value identifies the data with a specific instance.

Request

A DicomDataSet where one data element is encoded for each attribute and attribute value applicable to the operation.

Response

A DicomDataSet where one data element is encoded for each attribute and attribute value applicable to the operation. This is filled by the implementor.

StatusBaseArgs

An object derived from StatusBase that contains the optional status DICOM Elements to be added to the command set. This is returned by the implementor.

Return Value

A DicomCommandStatusType representing the outcome of processing.

Remarks

The OnNCreate2 is a replacement for the OnNCreate method.

When the DICOM Listening Service (Leadtools.Dicom.Server.exe) gets a N-CREATE-REQ, it does the following:

  1. Checks if the IProcessNCreate2 interface has been implemented by an addin. If so, then DICOM Listening Service calls the OnNCreate2 method to handle the N-CREATE-REQ.

  2. Otherwise, checks if the IProcessNCreate has been implemented by an addin. If so, then DICOM Listening Service calls the OnNCreate method to handle the N-CREATE-REQ.

The StatusBaseArgs argument is used to set additional optional status DICOM Elements in the N-CREATE-RSP command set.

If the return value is DicomCommandStatusType.Success, then the out argument StatusBaseArgs should return an instance of StatusBase.

If the return value is not DicomCommandStatusType.Success, then the out argument StatusBaseArgs should be an instance of one of the following StatusBase derived classes:

Requirements

Target Platforms

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.