Exemplo n.º 1
0
 public void Register(ServiceGraph graph)
 {
     _settings.Each((t, o) => {
         var registrar = typeof(Registrar <>).CloseAndBuildAs <IRegistrar>(o, t);
         registrar.Register(graph);
     });
 }
Exemplo n.º 2
0
 void IServiceGraphAlteration.Alter(ServiceGraph graph)
 {
     graph.AddService(typeof(IActivator), _objectDef);
 }
Exemplo n.º 3
0
 public void Register(ServiceGraph graph)
 {
     graph.SetServiceIfNone(typeof(T), ObjectDef.ForValue(_task.Result));
 }
Exemplo n.º 4
0
 void IServiceRegistration.Apply(ServiceGraph services)
 {
     _alterations.Each(x => x(services));
 }