Events (26) Methods (26)
Namespace: SchwabenCode.QuickIO.Transfer

Syntax

public interface IQuickIOTransferObserver

Summary

Implementation requirements for central observer.

Remarks

See QuickIOTransferObserver for custom observer implementation example.

Used by

Events

CancellationRequested

This event is raised if the service has been made known that he should cancel the processing

public CancellationRequested

CompletedAddingRequested

This event is raised if the service has been made known that no new elements will be added.

public CompletedAddingRequested

DirectoryCreated

This event is raised when a directory was created

public DirectoryCreated

DirectoryCreating

This event is raised before an upcoming directory creation operation is performed

public DirectoryCreating

DirectoryCreationError

This event is raised if directory creation operation fails

public DirectoryCreationError

FileCopyError

This event is raised if file copy operation fails

public FileCopyError

FileCopyFinished

This event is raised at the end of the file copy operation.

public FileCopyFinished

FileCopyProgress

This event is raised during a copy of a file. It provides current information such as progress, speed and estimated time.

public FileCopyProgress

FileCopyStarted

This event is triggered at the beginning of the file copy operation.

public FileCopyStarted

FileCreationError

This event is raised if file creation fails

public FileCreationError

FileCreationFinished

This event is raised at the end of the file copy operation.

public FileCreationFinished

FileCreationProgress

This event is raised at the end of the file copy operation.

public FileCreationProgress

FileCreationStarted

This event is triggered at the beginning of the file copy operation.

public FileCreationStarted

JobDequeued

This event is raised if the job was taken from of a queue.

public JobDequeued

JobEnd

This event is raised at the end Run

public JobEnd

JobEnqueued

This event is raised if the job of a queue has been added.

public JobEnqueued

JobError

This event is triggered if Run has an error

public JobError

JobRequeued

This event is raised if the job was re-added to a queue.

public JobRequeued

JobRetryMaxReached

This event is raised if the max retry count is reached.

public JobRetryMaxReached

JobRun

This event is raised when Run is called

public JobRun

WorkerCreated

This event is raised when a new processing thread was created

public WorkerCreated

WorkerIsWaiting

This event is raised when a processing thread is waiting for new items

public WorkerIsWaiting

WorkerPickedJob

This event is raised when a processing thread has taken a new item from the queue

public WorkerPickedJob

WorkerShutdown

This event is raised when a processing thread was shutdown

public WorkerShutdown

WorkerStarted

This event is raised when a processing thread started

public WorkerStarted

WorkerWokeUp

This event is raised when a processing thread, which so far has been waiting for, was notified of a new item in the queue. It may be that he gets no element from the queue, because another thread was faster. He would sleep lie down again, if no more items available.

public WorkerWokeUp

Methods

OnCancellationRequested(EventArgs args)

Fire CancellationRequested

public abstract void OnCancellationRequested(EventArgs args)

Parameters

args

EventArgs

Holds further event information

OnCompletedAddingRequested(EventArgs args)

Fire CompletedAddingRequested

public abstract void OnCompletedAddingRequested(EventArgs args)

Parameters

args

EventArgs

Holds further event information

public abstract void OnDirectoryCreated(QuickIOTransferDirectoryCreatedEventArgs args)

Parameters

args

QuickIOTransferDirectoryCreatedEventArgs

Holds further event information

public abstract void OnDirectoryCreating(QuickIOTransferDirectoryCreatingEventArgs args)

Parameters

args

QuickIOTransferDirectoryCreatingEventArgs

Holds further event information

public abstract void OnDirectoryCreationError(QuickIOTransferDirectoryCreationErrorEventArgs args)

Parameters

args

QuickIOTransferDirectoryCreationErrorEventArgs

Holds further event information

public abstract void OnFileCopyError(QuickIOTransferFileCopyErrorEventArgs args)

Parameters

args

QuickIOTransferFileCopyErrorEventArgs

Holds further event information

public abstract void OnFileCopyFinished(QuickIOTransferFileCopyFinishedEventArgs args)

Parameters

args

QuickIOTransferFileCopyFinishedEventArgs

Holds further event information

public abstract void OnFileCopyProgress(QuickIOTransferFileCopyProgressEventArgs args)

Parameters

args

QuickIOTransferFileCopyProgressEventArgs

Holds further event information

public abstract void OnFileCopyStarted(QuickIOTransferFileCopyStartedEventArgs args)

Parameters

args

QuickIOTransferFileCopyStartedEventArgs

Holds further event information

public abstract void OnFileCreationError(QuickIOTransferFileCreationErrorEventArgs args)

Parameters

args

QuickIOTransferFileCreationErrorEventArgs

Holds further event information

public abstract void OnFileCreationFinished(QuickIOTransferFileCreationFinishedEventArgs args)

Parameters

args

QuickIOTransferFileCreationFinishedEventArgs

Holds further event information

public abstract void OnFileCreationProgress(QuickIOTransferFileCreationProgressEventArgs args)

Parameters

args

QuickIOTransferFileCreationProgressEventArgs

Holds further event information

public abstract void OnFileCreationStarted(QuickIOTransferFileCreationStartedEventArgs args)

Parameters

args

QuickIOTransferFileCreationStartedEventArgs

Holds further event information

public abstract void OnJobDequeued(QuickIOTransferJobDequeuedEventArgs args)

Parameters

args

QuickIOTransferJobDequeuedEventArgs

Holds further event information

public abstract void OnJobEnd(QuickIOTransferJobEndEventArgs args)

Parameters

args

QuickIOTransferJobEndEventArgs

Holds further event information

public abstract void OnJobEnqueued(QuickIOTransferJobEnqueuedEventArgs args)

Parameters

args

QuickIOTransferJobEnqueuedEventArgs

Holds further event information

public abstract void OnJobError(QuickIOTransferJobErrorEventArgs args)

Parameters

args

QuickIOTransferJobErrorEventArgs

Holds further event information

public abstract void OnJobRequeued(QuickIOTransferJobRequeuedEventArgs args)

Parameters

args

QuickIOTransferJobRequeuedEventArgs

Holds further event information

public abstract void OnJobRetryMaxReached(QuickIOTransferJobReatryMaxReachedEventArgs args)

Parameters

args

QuickIOTransferJobReatryMaxReachedEventArgs

Holds further event information

public abstract void OnJobRun(QuickIOTransferJobRunEventArgs args)

Parameters

args

QuickIOTransferJobRunEventArgs

Holds further event information

public abstract void OnWorkerCreated(QuickIOTransferWorkerCreatedEventArgs args)

Parameters

args

QuickIOTransferWorkerCreatedEventArgs

Holds further event information

public abstract void OnWorkerIsWaiting(QuickIOTransferWorkerIsSleepingEventArgs args)

Parameters

args

QuickIOTransferWorkerIsSleepingEventArgs

Holds further event information

public abstract void OnWorkerPickedJob(QuickIOTransferWorkerPickedJobEventArgs args)

Parameters

args

QuickIOTransferWorkerPickedJobEventArgs

Holds further event information

public abstract void OnWorkerShutdown(QuickIOTransferWorkerShutdownEventArgs args)

Parameters

args

QuickIOTransferWorkerShutdownEventArgs

Holds further event information

public abstract void OnWorkerStarted(QuickIOTransferWorkerStartedEventArgs args)

Parameters

args

QuickIOTransferWorkerStartedEventArgs

Holds further event information

public abstract void OnWorkerWokeUp(QuickIOTransferWorkerWokeUpEventArgs args)

Parameters

args

QuickIOTransferWorkerWokeUpEventArgs

Holds further event information

Classdiagram

public interfaceIQuickIOTransferObserverCancellationRequestedCompletedAddingRequestedDirectoryCreatedDirectoryCreatingDirectoryCreationErrorFileCopyErrorFileCopyFinishedFileCopyProgressFileCopyStartedFileCreationErrorFileCreationFinishedFileCreationProgressFileCreationStartedJobDequeuedJobEndJobEnqueuedJobErrorJobRequeuedJobRetryMaxReachedJobRunWorkerCreatedWorkerIsWaitingWorkerPickedJobWorkerShutdownWorkerStartedWorkerWokeUpOnCancellationRequestedOnCompletedAddingRequestedOnDirectoryCreatedOnDirectoryCreatingOnDirectoryCreationErrorOnFileCopyErrorOnFileCopyFinishedOnFileCopyProgressOnFileCopyStartedOnFileCreationErrorOnFileCreationFinishedOnFileCreationProgressOnFileCreationStartedOnJobDequeuedOnJobEndOnJobEnqueuedOnJobErrorOnJobRequeuedOnJobRetryMaxReachedOnJobRunOnWorkerCreatedOnWorkerIsWaitingOnWorkerPickedJobOnWorkerShutdownOnWorkerStartedOnWorkerWokeUppublic classQuickIOTransferDirectoryCreationJobDirectoryCreatedDirectoryCreatingErrorImplementationOnDirectoryCreatedOnDirectoryCreatedOnDirectoryCreatingOnDirectoryCreatingOnErrorQuickIOTransferDirectoryCreationJobQuickIOTransferDirectoryCreationJobDirectoryToCreatePath { get; set; }JobType { get; }public classQuickIOTransferFileCopyJob_copyTimestamps_transferStarted_transferStartedLockDirectoryCreatedDirectoryCreatingErrorFinishedProgressStartedImplementationOnCopyFinishedOnCopyProgressOnCopyStartedOnDirectoryCreatedOnDirectoryCreatingOnErrorQuickIOTransferFileCopyJobQuickIOTransferFileCopyJobCopyAttributes { get; set; }CopyTimestamps { get; set; }JobType { get; }Source { get; set; }Target { get; set; }TransferStarted { get; set; }public classQuickIOTransferFileCreationJob_maxJobRetryAttemptsDirectoryCreatedDirectoryCreatingErrorFinishedProgressStartedImplementationOnCreationFinishedOnCreationProgressOnCreationStartedOnDirectoryCreatedOnDirectoryCreatingOnErrorQuickIOTransferFileCreationJobQuickIOTransferFileCreationJobContents { get; set; }FileName { get; set; }JobType { get; }MaxJobRetryAttempts { get; set; }TargetDirectory { get; set; }TargetFullName { get; set; }TransferStarted { get; set; }public abstract classQuickIOTransferJob_currentRetryCount_priorityLevelEndErrorRunRaisedImplementationOnEndOnErrorOnRunRunRunAsyncQuickIOTransferJobQuickIOTransferJobCurrentRetryCount { get; set; }JobType { get; }Observer { get; set; }PriorityLevel { get; set; }public classQuickIOTransferServiceBase_jobQueue_jobQueueLock_maxBufferSize_maxJobRetryAttempts_maxWorkerCount_workerCountRemoveRequested_workerCountRemoveRequestedLock_workerShutdownLock_workerThreads_workerThreadsLockCancellationRequestedCompletedAddingRequestedJobDequeuedJobEnqueuedJobRequeuedJobRetryMaxReachedWorkerCreatedWorkerIsWaitingWorkerPickedJobWorkerShutdownWorkerStartedWorkerWokeUpAddWorkerCancelClearCompleteAddingCreateWorkersInternalAddInternalAddRangeInternalCreateNewWorkerInternalReSortLockedQueueInternalStartWorkerInternalWaitForNewQueueItemsJobExecuteSwitchOnCancellationRequestedOnCompletedAddingRequestedOnJobDequeuedOnJobEnqueuedOnJobRequeuedOnJobRetryMaxReachedOnWorkerCreatedOnWorkerIsWaitingOnWorkerPickedJobOnWorkerShutdownOnWorkerStartedOnWorkerWokeUpRemoveThreadRemoveWorkerStartConsumingStartWorkersStartWorkingWaitForFinishWakeUpSleepingWorkersQuickIOTransferServiceBaseQuickIOTransferServiceBaseAddingCompleted { get; set; }CancelRequested { get; set; }IsWorking { get; }MaxBufferSize { get; set; }MaxJobRetryAttempts { get; set; }MaxWorkerCount { get; set; }Observer { get; set; }PriorityComparer { get; set; }WorkerCount { get; }

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom