.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

SerializableObjectLayer Class

An object access layer used for units of work (or sessions) in distributed applications.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public class SerializableObjectLayer :
    ISerializableObjectLayer,
    ISerializableObjectLayerProvider,
    ISerializableObjectLayerEx,
    ICommandChannel,
    ICommandChannelAsync
Public Class SerializableObjectLayer
    Implements ISerializableObjectLayer,
               ISerializableObjectLayerProvider,
               ISerializableObjectLayerEx,
               ICommandChannel,
               ICommandChannelAsync

Remarks

The SerializableObjectLayer is a ready-to-use ISerializableObjectLayer implementation shipped with XPO. You can provide your own implementations and use them in your distributed applications.

Normally, a SerializableObjectLayer instance is provided via a proxy derived from the SerializableObjectLayerProxyBase to initialize a SerializableObjectLayerService-based service, as shown below.


(ObjectWcfService.svc.cs)
public class ObjectService: SerializableObjectLayerService {
    // Initializing a service with a proxy providing a SerializableObjectLayer instance.
    public ObjectService(): base(new ObjectServiceProxy()) { 
    }

    static ObjectService() {
        // Initializing a data access layer (DAL).
        // ...
    }
}

public class ObjectServiceProxy: SerializableObjectLayerProxyBase {
    protected override SerializableObjectLayer GetObjectLayer() {
        return new SerializableObjectLayer(new UnitOfWork(), true);
    }
}

For more information on transferring data via WCF services, refer to Transferring Data via WCF Services.

Inheritance

See Also