Skip to main content
All docs
V21.2
.NET Framework 4.5.2+

AsyncBehavior Enum

Contains values that determine how asynchronous operations behave.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.2.dll

NuGet Package: DevExpress.Xpo

Declaration

public enum AsyncBehavior

Members

Name Description
Default

The asynchronous method exhibits the default behavior. Currently, this value is set to ThrowIfNotSupported.

ThrowIfNotSupported

If an asynchronous method is not supported, XPO throws the InvalidOperationException.

WrapIfNotSupported

If an asynchronous method is not supported, XPO wraps the method in Task.Run(()=>…).

WrapAlways

XPO calls a corresponding synchronous method and wraps it in Task.Run(()=>…).

Remarks

This enum’s values affect methods from the IDataLayerAsync and IDataStoreAsync interfaces.

See Also