Transfer Data via WCF Services
- 2 minutes to read
XPO allows you to easily transfer data over the wire in your distributed applications with WCF services using specially developed IDataStore, ICachedDataStore and ISerializableObjectLayer providers. You can choose one for the server application (based on your data store access method) and expose it with the WCF service. In most cases, all you have to do is derive your service from a corresponding XPO service class, modify service binding settings, and pass the service’s URL to your client application.
The following table summarizes the information on classes and interfaces available for use with WCF services.
Data Store Implementation
Service Class *
* Note that service classes are not supported in .NET Core 5+. You can connect client classes for these platforms to the service classes hosted in .NET Framework applications.
Note that only the DataStoreClientAsync, CachedDataStoreClientAsync, and SerializableObjectLayerClient client classes support Task-based asynchronous methods. You can enable the other client classes to work with the data store asynchronously. To do this, set the XpoDefault.DataStoreAsyncBehavior property to the WrapAlways or WrapIfNotSupported value.