The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
All docs
V19.1
19.2 (EAP/Beta)
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

AsyncBehavior Enum

Contains values that determine how asynchronous operations behave.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public enum AsyncBehavior
Public Enum AsyncBehavior
public enum AsyncBehavior
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.

WrapAlways

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

WrapIfNotSupported

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

Remarks

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

See Also