Namespace: LaurelBridge.DCF.Examples.AssociationRejection
Assembly: AssociationRejection (in AssociationRejection.exe) Version: DCF34 r11538 DCF_3_4_24_20190319
public DicomSessionSettings GetSessionSettings( AssociationAcceptor assoc )
Parameters
- assoc
- Type: AssociationAcceptor
The AssociationException
Return Value
Type: DicomSessionSettingsthe 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.