DOFConfigBuildersetSourceID Method OpenDOF Object Access Library
Sets the identifier that is used for a DOF's operations in the unsecured domain.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFConfigBuilder setSourceID(
	DOFObjectIDSource sourceID
)

Parameters

sourceID
Type: org.opendof.core.oalDOFObjectIDSource
The Source to use as an identifier in the unsecured domain. Null to randomly generate a source identifier.

Return Value

Type: DOFConfigBuilder
The Builder, with the sourceID set to the new value.
Remarks

Sets the identifier that is used for a DOF's operations in the unsecured domain. You can set this to null (which is its default value) to cause the library to generate a unique identifier (a random GUID) each time a DOF.Config is used to instantiate a DOF. Operations in secure domains may not use this source identifier. Source identifiers in secure domains may be assigned by the Authentication Server (AS) and thus, would not be under application control.

Source identifiers must be globally unique. If you use this method to set a constant value for the source identifier, you should not use a DOF.Config created from this Builder to instantiate more than one DOF. You should also ensure that you include DOF.cancelAllOperations() in the DOF's startup routines.

See Also

Reference

Source.create(DOFObjectID)