Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class AsyncDataFactory

Provides asyncronus operations against contatined DataFactory instance.

Inheritance
System.Object
AsyncDataFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[Obsolete("This class is no longer in use and will be removed in a future release", false)]
public class AsyncDataFactory

Constructors

AsyncDataFactory(DataFactory)

Initializes a new instance of the AsyncDataFactory class.

Declaration
public AsyncDataFactory(DataFactory dataFactory)
Parameters
Type Name Description
DataFactory dataFactory

The data factory.

AsyncDataFactory(IContentRepository)

Initializes a new instance of the AsyncDataFactory class.

Declaration
public AsyncDataFactory(IContentRepository contentRepository)
Parameters
Type Name Description
IContentRepository contentRepository

The content repository.

Methods

CopyAsync(ContentReference, ContentReference, Boolean, Object)

Copies pages to another container asyncronusly. When job is finished either successfully or failed the event CopyCompleted is raised.

Declaration
public virtual void CopyAsync(ContentReference contentLink, ContentReference destinationLink, bool publishOnDestination, object userState)
Parameters
Type Name Description
ContentReference contentLink

The content link.

ContentReference destinationLink

The destination link.

System.Boolean publishOnDestination

if set to true the page is published at destination.

System.Object userState

State of the user.

DeleteChildrenAsync(ContentReference, Object)

DeleteChildren asyncronusly. When job is finished either successfully or failed the event DeleteChildrenCompleted is raised.

Declaration
public virtual void DeleteChildrenAsync(ContentReference contentLink, object userState)
Parameters
Type Name Description
ContentReference contentLink

The page link.

System.Object userState

State of the user.

OnCopyCompleted(AsyncCopyCompletedEventArgs)

Raises the CopyCompleted event.

Declaration
protected virtual void OnCopyCompleted(AsyncCopyCompletedEventArgs copyCompletedArgs)
Parameters
Type Name Description
AsyncCopyCompletedEventArgs copyCompletedArgs

The AsyncCopyCompletedEventArgs instance containing the event data.

OnDeleteChildrenCompleted(AsyncCompletedEventArgs)

Raises the DeleteChildrenCompleted event.

Declaration
protected virtual void OnDeleteChildrenCompleted(AsyncCompletedEventArgs deleteChildrenCompletedArgs)
Parameters
Type Name Description
System.ComponentModel.AsyncCompletedEventArgs deleteChildrenCompletedArgs

The System.ComponentModel.AsyncCompletedEventArgs instance containing the event data.

Events

CopyCompleted

Occurs when the asyncronus copy operation is completed. If the operation failed property Exception on AsyncCopyCompletedEventArgs contains the occured failure.

Declaration
public event EventHandler<AsyncCopyCompletedEventArgs> CopyCompleted
Event Type
Type Description
System.EventHandler<AsyncCopyCompletedEventArgs>

DeleteChildrenCompleted

Occurs when the asyncronus DeleteChildren operation is completed. If the operation failed property Exception on System.ComponentModel.AsyncCompletedEventArgs contains the occured failure.

Declaration
public event EventHandler<AsyncCompletedEventArgs> DeleteChildrenCompleted
Event Type
Type Description
System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs>

Extension Methods