152
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3
|
|
4 namespace Implab.Components {
|
|
5 /// <summary>
|
|
6 /// Global application components and services.
|
|
7 /// </summary>
|
|
8 public static class App {
|
|
9 readonly static ComponentContainer<object> _root = new ComponentContainer<object>();
|
|
10
|
|
11 public static ICollection<object> RootContainer {
|
|
12 get { return _root; }
|
|
13 }
|
|
14
|
|
15 static App() {
|
|
16 AppDomain.CurrentDomain.ProcessExit += (sender, e) => _root.Dispose();
|
|
17 }
|
|
18 }
|
|
19 }
|
|
20
|