##// END OF EJS Templates
Bound promise to CancellationToken...
Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise

File last commit:

r153:b933ec88446e v2
r209:a867536c68fc v2
Show More
App.cs
25 lines | 796 B | text/x-csharp | CSharpLexer
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>();
/// <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>
public static ICollection<object> RootContainer {
get { return _root; }
}
static App() {
AppDomain.CurrentDomain.DomainUnload += (sender, e) => _root.Dispose();
}
}
}