DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomServer Class / AssociationClosed Event



In This Topic
    AssociationClosed Event
    In This Topic
    Event fired when an incoming DICOM association is closed
    Syntax
    'Declaration
     
    
    Public Event AssociationClosed As AssociationClosedHandler
    'Usage
     
    
    Dim instance As DicomServer
    Dim handler As AssociationClosedHandler
     
    AddHandler instance.AssociationClosed, handler
    public event AssociationClosedHandler AssociationClosed
    public:
    event AssociationClosedHandler^ AssociationClosed
    Remarks

    At the time this event fires, the association has closed, but the associated DicomAssociation object still exists, so it's properties are all still available.

    When acting as a print SCP, this event is useful, as the DICOM standard allows all associated objects created during the association to be deleted once the association closes.

    Important Note:

    With the sole exception of applications acting as a print service SCP, DICOM specifically bars any application from making any assumptions about the organisation of incoming data based on he association on which it arrives - to quote part 4 (section B.4):

    "�an SCP of the Storage SOP Classes may not attach any significance to the particular association or associations over which C-STORE operations are requested, nor the order in which C-STORE operations occur within an association. No constraints are placed on the operations an SCU may perform during any particular association, other than those defined during association negotiation. An SCP may not expect an SCU to perform C-STORE operations in a particular order.

    Similarly, no semantics are attached to the closing of an Association, such as the end of Study or Performed Procedure."

    Therefore, if this event is used for any purpose other than a print SCP, any actions taken within it are most likely to be violations of the DICOM Standard.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also