Mercurial > pub > ImplabNet
annotate Implab/Components/App.cs @ 152:240aa6994018 v2
component model refactoring
| author | cin |
|---|---|
| date | Thu, 11 Feb 2016 01:56:27 +0300 |
| parents | |
| children | b933ec88446e |
| rev | line source |
|---|---|
| 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 |
