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