An interface for callback objects which can be used to return information about progress and errors.
More...
Public Member Functions | |
void | Error (string keyOfSender, string errorMsg) |
A function to report the information about an error. More... | |
void | Progress (string keyOfSender, int percent, string message) |
A function to report the information about progress of the task. More... | |
An interface for callback objects which can be used to return information about progress and errors.
Here is an example which demonstrates the usage of Callback.
void ICallback.Error | ( | string | keyOfSender, |
string | errorMsg | ||
) |
A function to report the information about an error.
keyOfSender | The key associated with the object in which error took place. |
errorMsg | The description of the error. |
void ICallback.Progress | ( | string | keyOfSender, |
int | percent, | ||
string | message | ||
) |
A function to report the information about progress of the task.
keyOfSender | The key associated with the object in which error took place. |
percent | The percent of completion (from 0 to 100). |
message | The information about the task being executed. |