Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/ContainerConfigurationSchema.cs @ 280:f07be402ab02 v3
Added Trace<T>.Debug(...) method for debug messages
Added ContainerBuilde.LoadConfig(Uri) method
author | cin |
---|---|
date | Fri, 25 May 2018 19:15:26 +0300 |
parents | 6691aff01de1 |
children |
comparison
equal
deleted
inserted
replaced
279:8714471e8d78 | 280:f07be402ab02 |
---|---|
43 | 43 |
44 public void RegisterContainerElement<T>(string name) where T : AbstractContainerItem { | 44 public void RegisterContainerElement<T>(string name) where T : AbstractContainerItem { |
45 RegisterContainerElement(typeof(T), name); | 45 RegisterContainerElement(typeof(T), name); |
46 } | 46 } |
47 | 47 |
48 public ContainerElement LoadFile(string file) { | 48 public ContainerElement LoadConfig(string uri) { |
49 using (var reader = XmlReader.Create(file)) { | 49 using (var reader = XmlReader.Create(uri)) { |
50 return (ContainerElement)Serializer.Deserialize(reader); | 50 return (ContainerElement)Serializer.Deserialize(reader); |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 static ContainerConfigurationSchema CreateDefault() { | 54 static ContainerConfigurationSchema CreateDefault() { |