Ejemplo n.º 1
0
 /// <summary>
 /// Register all services
 /// </summary>
 /// <param name="registrar">Registrar used for the registration</param>
 public void Register(IContainerRegistrar registrar)
 {
     //just register everything that has been tagged with the [Component] attribute
     registrar.RegisterComponents(Lifetime.Scoped, Assembly.GetExecutingAssembly());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Register all services
 /// </summary>
 /// <param name="registrar">Registrar used for the registration</param>
 public void Register(IContainerRegistrar registrar)
 {
     registrar.RegisterComponents(Lifetime.Transient, typeof(SampleService).Assembly);
 }
 public override void RegisterUsingComponentAttribute(Assembly assembly)
 {
     _containerRegistrar.RegisterComponents(Lifetime.Scoped, assembly);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Register all services
 /// </summary>
 /// <param name="registrar">Registrar used for the registration</param>
 public void Register(IContainerRegistrar registrar)
 {
     registrar.RegisterComponents(Lifetime.Scoped, Assembly.GetExecutingAssembly());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Register all services
 /// </summary>
 /// <param name="registrar">Registrar used for the registration</param>
 public void Register(IContainerRegistrar registrar)
 {
     //just register everything that has been tagged with the [Component] attribute
     registrar.RegisterComponents(Lifetime.Scoped, Assembly.GetExecutingAssembly());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Register all services
 /// </summary>
 /// <param name="registrar">Registrar used for the registration</param>
 public void Register(IContainerRegistrar registrar)
 {
     registrar.RegisterComponents(Lifetime.Transient, typeof(SampleService).Assembly);
 }