Mercurial > pub > ImplabNet
diff Implab.ServiceHost/Unity/RegisterElement.cs @ 274:22629bf26121 v3
Unity xml configuration, alpha2
author | cin |
---|---|
date | Fri, 27 Apr 2018 04:47:52 +0300 |
parents | 79110a16cab7 |
children | 963b17c275be |
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/RegisterElement.cs Thu Apr 26 19:35:01 2018 +0300 +++ b/Implab.ServiceHost/Unity/RegisterElement.cs Fri Apr 27 04:47:52 2018 +0300 @@ -20,15 +20,9 @@ [XmlElement("method", typeof(MethodInjectionElement))] public AbstractInjectionElement[] Injectors { get; set; } - public override void Visit(ContainerContext context) { + public override void Visit(ContainerBuilder context) { context.Visit(this); } - - public virtual Type ResolveImplementationType(ContainerContext ctx) { - return string.IsNullOrEmpty(MapToType) ? - ResolveRegistrationType(ctx) : - ctx.Resolve(MapToType); - } } } \ No newline at end of file