Progress Event

Fires to report the progress of an operation.

Syntax

public event OnProgressHandler OnProgress;

public delegate void OnProgressHandler(object sender, FilecacheProgressEventArgs e);

public class FilecacheProgressEventArgs : EventArgs {
  public int Operation { get; }
  public long Current { get; }
  public long Total { get; }
  public bool Interrupt { get; set; }
}
Public Event OnProgress As OnProgressHandler

Public Delegate Sub OnProgressHandler(sender As Object, e As FilecacheProgressEventArgs)

Public Class FilecacheProgressEventArgs Inherits EventArgs
  Public ReadOnly Property Operation As Integer
  Public ReadOnly Property Current As Long
  Public ReadOnly Property Total As Long
  Public Property Interrupt As Boolean
End Class

Remarks

This event fires when the cache wants to report the progress of the operation specified by Operation; possible values are:

CBFSSTORAGE_PO_CLEANUP1Cache cleanup

The Current and Total parameters specify the number of the item being processed, and the total number of items being processed, respectively. For some operations, these parameters may be 0 or -1.

The Interrupt parameter can be set to true to stop the operation.

 
 
Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Cache 2020 .NET Edition - Version 20.0 [Build 7647]