Class TransferQueueManager

The main function of MirroringQueueExecuterManager class is manage the queue item (MirroringTransferData) and if the item is bigger than chunksize divide them in small packages and forwarding to the Client (IMirroringDataTransfer). It has a private queue which the owner can send action item for executing. There are three type of action 1- Initialize action tells to Client a miiroring job is initialized 2- SendPackage action sends the Mirroring job to server 3- Complete action tells to Client the mirroring job is complete 4- Clean up action clean up queue and wait to client is back from server call All actions are stored in a private queue and the menager executes them one after one. This class chunked the transfer data if the data is bigger the chunksize and send them in small packet the client.

Inheritance
System.Object
TransferQueueManager
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.MirroringService.MirroringTransferProtocol.Common
Assembly: EPiServer.Enterprise.dll
Version: 8.11.0
Syntax
public class TransferQueueManager

Constructors

TransferQueueManager(IMirroringDataTransfer)

Declaration
public TransferQueueManager(IMirroringDataTransfer client)
Parameters
Type Name Description
IMirroringDataTransfer client

TransferQueueManager(IMirroringDataTransfer, Int32)

Declaration
public TransferQueueManager(IMirroringDataTransfer client, int chunckSize)
Parameters
Type Name Description
IMirroringDataTransfer client
System.Int32 chunckSize

Methods

AddToQueue(MirroringQueueData<TransferQueueManager.TypeOfTransferAction>)

Adds to queue.

Declaration
public void AddToQueue(MirroringQueueData<TransferQueueManager.TypeOfTransferAction> mirroingQueueItem)
Parameters
Type Name Description
MirroringQueueData<TransferQueueManager.TypeOfTransferAction> mirroingQueueItem

The mirroing queue item.

Cleanup(Guid, MirroringStatus)

Declaration
public void Cleanup(Guid contextId, MirroringStatus mirroringStatus)
Parameters
Type Name Description
System.Guid contextId
MirroringStatus mirroringStatus

Events

MirroingStatusEvent

Declaration
public event EventHandler<MirroringStatusEventArgs> MirroingStatusEvent
Event Type
Type Description
System.EventHandler<MirroringStatusEventArgs>

Extension Methods