annotate Implab.ServiceHost/Unity/DefaultParameterElement.cs @ 277:963b17c275be
v3
Refactoring
Added <array> element to injection parameters
Working on registrations of factories
author |
cin |
date |
Sat, 28 Apr 2018 18:48:09 +0300 |
parents |
6fefd5811b9b |
children |
6691aff01de1 |
rev |
line source |
270
|
1 namespace Implab.ServiceHost.Unity
|
|
2 {
|
277
|
3 public class DefaultParameterElement : InjectionParameterElement {
|
274
|
4 public string Value {
|
|
5 get { return null; }
|
|
6 }
|
|
7
|
275
|
8 public override void Visit(InjectionValueBuilder builder) {
|
277
|
9 var type = builder.ResolveInjectedValueType(TypeName);
|
|
10 builder.SetValue(type, Safe.CreateDefaultValue(type));
|
272
|
11 }
|
270
|
12 }
|
|
13 } |