Skip to content

Synchronous Support

By default all methods in TMS FNC Cloud Pack that interact with APIs are executed asynchronously. This means the result data is not available immediately but through an associated event that gets triggerd at the time the requested data is available. For example, when executing the GetFolderList call of TTMSFNCCloudStorageServices, the OnGetFolderList event is triggered.

In case an application flow requires that a method is executed synchronously the method calls can be enclosed with BeginSync and EndSync calls.

Note

Synchronous support is currently only avaialble for the following components: TTMSFNCCloudBox, TMSFNCCloudDropBox, TTMSFNCCloudGoogleDrive, TTMSFNCCloudMicrosoftOneDrive, TTMSFNCCloudStorageServices.

Example

var CloudItems: TTMSFNCCloudItems; begin TMSFNCCloudStorageServices1.BeginSync; CloudtItems := TMSFNCCloudStorageServices1.GetFolderList; TMSFNCCloudStorageServices1.EndSync; end;

WEB

For WEB based applications running on TMS WEB Core, synchronous support is currently not available.