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

Syntax

public class QuickIOTransferObserver : IQuickIOTransferObserver

Implements

Summary

A QuickIO observer is a central contact point and allows the condition monitoring of QuickIO services and QuickIO jobs. It is possible to create an own observer by inherit from IQuickIOTransferObserver and QuickIOTransferObserver to monitor your own services and jobs at a central point and gather all information.

If you define your own jobs you can create your own observer class that derives from IQuickIOTransferJob, too.

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 creation operation.

public FileCreationFinished

FileCreationProgress

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

public FileCreationProgress

FileCreationStarted

This event is triggered at the beginning of the file creation 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

QuickIOTransferObserver()

Creates a new instance of QuickIOTransferObserver

public void QuickIOTransferObserver()

OnCancellationRequested(EventArgs args)

Fire CancellationRequested

public virtual void OnCancellationRequested(EventArgs args)

Parameters

args

EventArgs

Holds further event information

OnCompletedAddingRequested(EventArgs args)

Fire CompletedAddingRequested

public virtual void OnCompletedAddingRequested(EventArgs args)

Parameters

args

EventArgs

Holds further event information

public virtual void OnDirectoryCreated(QuickIOTransferDirectoryCreatedEventArgs args)

Parameters

args

QuickIOTransferDirectoryCreatedEventArgs

Holds further event information

public virtual void OnDirectoryCreating(QuickIOTransferDirectoryCreatingEventArgs args)

Parameters

args

QuickIOTransferDirectoryCreatingEventArgs

Holds further event information

public virtual void OnDirectoryCreationError(QuickIOTransferDirectoryCreationErrorEventArgs args)

Parameters

args

QuickIOTransferDirectoryCreationErrorEventArgs

Holds further event information

public virtual void OnFileCopyError(QuickIOTransferFileCopyErrorEventArgs args)

Parameters

args

QuickIOTransferFileCopyErrorEventArgs

Holds further event information

public virtual void OnFileCopyFinished(QuickIOTransferFileCopyFinishedEventArgs args)

Parameters

args

QuickIOTransferFileCopyFinishedEventArgs

Holds further event information

public virtual void OnFileCopyProgress(QuickIOTransferFileCopyProgressEventArgs args)

Parameters

args

QuickIOTransferFileCopyProgressEventArgs

Holds further event information

public virtual void OnFileCopyStarted(QuickIOTransferFileCopyStartedEventArgs args)

Parameters

args

QuickIOTransferFileCopyStartedEventArgs

Holds further event information

public virtual void OnFileCreationError(QuickIOTransferFileCreationErrorEventArgs args)

Parameters

args

QuickIOTransferFileCreationErrorEventArgs

Holds further event information

public virtual void OnFileCreationFinished(QuickIOTransferFileCreationFinishedEventArgs args)

Parameters

args

QuickIOTransferFileCreationFinishedEventArgs

Holds further event information

public virtual void OnFileCreationProgress(QuickIOTransferFileCreationProgressEventArgs args)

Parameters

args

QuickIOTransferFileCreationProgressEventArgs

Holds further event information

public virtual void OnFileCreationStarted(QuickIOTransferFileCreationStartedEventArgs args)

Parameters

args

QuickIOTransferFileCreationStartedEventArgs

Holds further event information

public virtual void OnJobDequeued(QuickIOTransferJobDequeuedEventArgs args)

Parameters

args

QuickIOTransferJobDequeuedEventArgs

Holds further event information

public virtual void OnJobEnd(QuickIOTransferJobEndEventArgs args)

Parameters

args

QuickIOTransferJobEndEventArgs

Holds further event information

public virtual void OnJobEnqueued(QuickIOTransferJobEnqueuedEventArgs args)

Parameters

args

QuickIOTransferJobEnqueuedEventArgs

Holds further event information

public virtual void OnJobError(QuickIOTransferJobErrorEventArgs args)

Parameters

args

QuickIOTransferJobErrorEventArgs

Holds further event information

public virtual void OnJobRequeued(QuickIOTransferJobRequeuedEventArgs args)

Parameters

args

QuickIOTransferJobRequeuedEventArgs

Holds further event information

public virtual void OnJobRetryMaxReached(QuickIOTransferJobReatryMaxReachedEventArgs args)

Parameters

args

QuickIOTransferJobReatryMaxReachedEventArgs

Holds further event information

public virtual void OnJobRun(QuickIOTransferJobRunEventArgs args)

Parameters

args

QuickIOTransferJobRunEventArgs

Holds further event information

public virtual void OnWorkerCreated(QuickIOTransferWorkerCreatedEventArgs args)

Parameters

args

QuickIOTransferWorkerCreatedEventArgs

Holds further event information

public virtual void OnWorkerIsWaiting(QuickIOTransferWorkerIsSleepingEventArgs args)

Parameters

args

QuickIOTransferWorkerIsSleepingEventArgs

Holds further event information

public virtual void OnWorkerPickedJob(QuickIOTransferWorkerPickedJobEventArgs args)

Parameters

args

QuickIOTransferWorkerPickedJobEventArgs

Holds further event information

public virtual void OnWorkerShutdown(QuickIOTransferWorkerShutdownEventArgs args)

Parameters

args

QuickIOTransferWorkerShutdownEventArgs

Holds further event information

public virtual void OnWorkerStarted(QuickIOTransferWorkerStartedEventArgs args)

Parameters

args

QuickIOTransferWorkerStartedEventArgs

Holds further event information

public virtual void OnWorkerWokeUp(QuickIOTransferWorkerWokeUpEventArgs args)

Parameters

args

QuickIOTransferWorkerWokeUpEventArgs

Holds further event information

Classdiagram

public classQuickIOTransferObserverCancellationRequestedCompletedAddingRequestedDirectoryCreatedDirectoryCreatingDirectoryCreationErrorFileCopyErrorFileCopyFinishedFileCopyProgressFileCopyStartedFileCreationErrorFileCreationFinishedFileCreationProgressFileCreationStartedJobDequeuedJobEndJobEnqueuedJobErrorJobRequeuedJobRetryMaxReachedJobRunWorkerCreatedWorkerIsWaitingWorkerPickedJobWorkerShutdownWorkerStartedWorkerWokeUpOnCancellationRequestedOnCompletedAddingRequestedOnDirectoryCreatedOnDirectoryCreatingOnDirectoryCreationErrorOnFileCopyErrorOnFileCopyFinishedOnFileCopyProgressOnFileCopyStartedOnFileCreationErrorOnFileCreationFinishedOnFileCreationProgressOnFileCreationStartedOnJobDequeuedOnJobEndOnJobEnqueuedOnJobErrorOnJobRequeuedOnJobRetryMaxReachedOnJobRunOnWorkerCreatedOnWorkerIsWaitingOnWorkerPickedJobOnWorkerShutdownOnWorkerStartedOnWorkerWokeUpQuickIOTransferObserverpublic interfaceIQuickIOTransferObserverCancellationRequestedCompletedAddingRequestedDirectoryCreatedDirectoryCreatingDirectoryCreationErrorFileCopyErrorFileCopyFinishedFileCopyProgressFileCopyStartedFileCreationErrorFileCreationFinishedFileCreationProgressFileCreationStartedJobDequeuedJobEndJobEnqueuedJobErrorJobRequeuedJobRetryMaxReachedJobRunWorkerCreatedWorkerIsWaitingWorkerPickedJobWorkerShutdownWorkerStartedWorkerWokeUpOnCancellationRequestedOnCompletedAddingRequestedOnDirectoryCreatedOnDirectoryCreatingOnDirectoryCreationErrorOnFileCopyErrorOnFileCopyFinishedOnFileCopyProgressOnFileCopyStartedOnFileCreationErrorOnFileCreationFinishedOnFileCreationProgressOnFileCreationStartedOnJobDequeuedOnJobEndOnJobEnqueuedOnJobErrorOnJobRequeuedOnJobRetryMaxReachedOnJobRunOnWorkerCreatedOnWorkerIsWaitingOnWorkerPickedJobOnWorkerShutdownOnWorkerStartedOnWorkerWokeUp

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom