Mercurial > pub > ImplabNet
diff Implab.Playground/Program.cs @ 271:d4d437ec4483 v3
Working on Unity xml configuration
author | cin |
---|---|
date | Wed, 25 Apr 2018 19:23:35 +0300 |
parents | ade80d94dfb5 |
children | 9d1cca834b05 |
line wrap: on
line diff
--- a/Implab.Playground/Program.cs Wed Apr 25 04:44:40 2018 +0300 +++ b/Implab.Playground/Program.cs Wed Apr 25 19:23:35 2018 +0300 @@ -43,8 +43,12 @@ static void Main(string[] args) { var container = new UnityContainer(); + var ctx = new ConfigurationContext(container); + var conf = SerializationHelpers.DeserializeFromFile<ContainerElement>("data/sample.xml"); + ctx.Visit(conf); + Console.WriteLine($"Registrations: {conf.Items.Count}"); }