public static void Initialize(Action <IServiceLocatorBuilder> action)
 {
     using (var builder = new ServiceLocatorBuilder())
     {
         action.Invoke(builder);
         Instance  = builder.Build();
         Container = builder.Container;
         BeginLifetimeScope();
     }
 }
 public static void Initialize()
 {
     using (var builder = new ServiceLocatorBuilder())
     {
         builder.RegisterAssemblyModules();
         Instance  = builder.Build();
         Container = builder.Container;
         BeginLifetimeScope();
     }
 }
        /// <summary>
        /// Arranges the <see cref="IServiceLocator"/> instance.
        /// </summary>
        /// <param name="action">Action for <see cref="ContainerBuilder"/> instance.</param>
        /// <returns>Returns the <see cref="IServiceLocator"/> instance.</returns>
        public IServiceLocator ArrangeLocator(Action <IServiceLocatorBuilder> action)
        {
            var builder = new ServiceLocatorBuilder();

            action.Invoke(builder);

            this._locator = builder.Build();

            return(this._locator);
        }
 public static void Initialize(List <Module> modules)
 {
     using (var builder = new ServiceLocatorBuilder())
     {
         foreach (var module in modules)
         {
             builder.ContainerBuilder.RegisterModule(module);
         }
         Instance  = builder.Build();
         Container = builder.Container;
         BeginLifetimeScope();
     }
 }