SubscriberBeginAccess Method |
Namespace: OpenDDSharp.DDS
The application is required to use this operation only if PresentationQosPolicy of the Subscriber to which the DataReader belongs has the AccessScope set to GroupPresentationQos.
In the aforementioned case, the operation BeginAccess must be called prior to calling any of the sample-accessing operations, namely: GetDataReaders on the Subscriber and Read, Take on any DataReader. Otherwise the sample-accessing operations will return the error PreconditionNotMet. Once the application has finished accessing the data samples it must call EndAccess.
The calls to BeginAccess/EndAccess may be nested. In that case, the application must call EndAccess as many times as it called BeginAccess.