AssociationRejectionExampleServerGetSessionSettings Method

DICOM Connectivity Framework V3.4
Return the session settings for the given association acceptor.

Namespace:  LaurelBridge.DCF.Examples.AssociationRejection
Assembly:  AssociationRejection (in AssociationRejection.exe) Version: DCF34 r10861 DCF_3_4_14

public DicomSessionSettings GetSessionSettings(
	AssociationAcceptor assoc


Type: AssociationAcceptor
The AssociationException

Return Value

Type: DicomSessionSettings
the session settings

This contrived example chooses to reject the association if the SCU's IP address, calling AE title, and called AE title are not present in hardcoded arrays for the sake of simplicity. A more robust solution might allow only certain AE titles from certain IP address ranges. Moreover, this information can be persisted in another manner (eg, a separate configuration file, database, etc.).

Also note that this example shows how to restrict the AllowedPresentationContexts as a function of an AE title, and this functionality happens in the BeginAssociation method.

Although it is common to see a DICOM application/device restricted to a single AE title, this example shows that an application can be called with different AE titles, allowing AE title dependant functionality.

See Also