LAUREL BRIDGE

AssociationRejectionExampleServerGetSessionSettings Method

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

Namespace:  LaurelBridge.DCFExamples.AssociationRejection
Assembly:  AssociationRejection (in AssociationRejection.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
Syntax

C#
public DicomSessionSettings GetSessionSettings(
	AssociationAcceptor assoc
)

Parameters

assoc
Type: AssociationAcceptor
The AssociationException

Return Value

Type: DicomSessionSettings
the session settings
Remarks

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 dependent functionality.

See Also

Reference