Added prototype code for an inversion-of-control container and a progress tracking service; moved XmlHelper class from Nuclex.UserInterface to Nuclex.Support; Nuclex.Support now uses the .NET Framework's own AssemblyLoadEventArgs class if it is compiled for the full framework; fixed a bug in the Request class that would cause exceptions to not be reported if Join() was called on a Request<x> was casted to a plain Request
git-svn-id: file:///srv/devel/repo-conversion/nusu@138 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
d0fe47239e
commit
41dcfa34d0
15 changed files with 1030 additions and 6 deletions
|
|
@ -198,6 +198,18 @@ namespace Nuclex.Support.Tracking {
|
|||
/// Allows the specific request implementation to re-throw an exception if
|
||||
/// the background process finished unsuccessfully
|
||||
/// </summary>
|
||||
protected override void ReraiseExceptions() {
|
||||
// Request and discard the result, so the implementor can do all error handling
|
||||
// in the GatherResults() method. This is a good default implementation as long
|
||||
// as the returned object does not require IDispose. It if does, this method
|
||||
// needs to be overridden.
|
||||
GatherResults();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Allows the specific request to return the results of the Request to the
|
||||
/// caller of the Join() method
|
||||
/// </summary>
|
||||
protected abstract ResultType GatherResults();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue