Class AsyncDataFactory
Provides asyncronus operations against contatined DataFactory instance.
Inheritance
Inherited Members
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class AsyncDataFactory
Constructors
AsyncDataFactory(DataFactory)
Initializes a new instance of the Async
Declaration
public AsyncDataFactory(DataFactory dataFactory)
Parameters
Type | Name | Description |
---|---|---|
Data |
dataFactory | The data factory. |
AsyncDataFactory(IContentRepository)
Initializes a new instance of the Async
Declaration
public AsyncDataFactory(IContentRepository contentRepository)
Parameters
Type | Name | Description |
---|---|---|
IContent |
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 Copy
Declaration
public virtual void CopyAsync(ContentReference contentLink, ContentReference destinationLink, bool publishOnDestination, object userState)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
Content |
destinationLink | The destination link. |
System. |
publishOnDestination | if set to |
System. |
userState | State of the user. |
DeleteChildrenAsync(ContentReference, Object)
DeleteChildren asyncronusly. When job is finished either successfully or failed the event Delete
Declaration
public virtual void DeleteChildrenAsync(ContentReference contentLink, object userState)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The page link. |
System. |
userState | State of the user. |
OnCopyCompleted(AsyncCopyCompletedEventArgs)
Raises the Copy
Declaration
protected virtual void OnCopyCompleted(AsyncCopyCompletedEventArgs copyCompletedArgs)
Parameters
Type | Name | Description |
---|---|---|
Async |
copyCompletedArgs | The Async |
OnDeleteChildrenCompleted(AsyncCompletedEventArgs)
Raises the Delete
Declaration
protected virtual void OnDeleteChildrenCompleted(AsyncCompletedEventArgs deleteChildrenCompletedArgs)
Parameters
Type | Name | Description |
---|---|---|
System. |
deleteChildrenCompletedArgs | The System. |
Events
CopyCompleted
Occurs when the asyncronus copy operation is completed. If the operation failed property Exception on
Async
Declaration
public event EventHandler<AsyncCopyCompletedEventArgs> CopyCompleted
Event Type
Type | Description |
---|---|
System. |
DeleteChildrenCompleted
Occurs when the asyncronus DeleteChildren operation is completed. If the operation failed property Exception on
System.
Declaration
public event EventHandler<AsyncCompletedEventArgs> DeleteChildrenCompleted
Event Type
Type | Description |
---|---|
System. |