##// END OF EJS Templates
Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler...
Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler Any unhandled OperationCanceledException will cause the promise cancelation

File last commit:

r153:b933ec88446e v2
r187:dd4a3590f9c6 ref20160224
Show More
App.cs
25 lines | 796 B | text/x-csharp | CSharpLexer
cin
component model refactoring
r152 using System;
using System.Collections.Generic;
namespace Implab.Components {
/// <summary>
/// Global application components and services.
/// </summary>
public static class App {
readonly static ComponentContainer<object> _root = new ComponentContainer<object>();
cin
docs
r153 /// <summary>
/// The container for application level components.
/// </summary>
/// <remarks>Pools of disposable objects can be placed here and they will be automatically
/// disposed when application domain is unloaded.</remarks>
cin
component model refactoring
r152 public static ICollection<object> RootContainer {
get { return _root; }
}
static App() {
cin
docs
r153 AppDomain.CurrentDomain.DomainUnload += (sender, e) => _root.Dispose();
cin
component model refactoring
r152 }
}
}