Bottles.Services.WrappedBootstrapper.BottleServices C# (CSharp) Метод

BottleServices() публичный Метод

public BottleServices ( ) : IEnumerable
Результат IEnumerable
        public IEnumerable<IBottleService> BottleServices()
        {
            return _services;
        }

Usage Example

        public BottleServiceRunner Bootstrap(string bootstrapperType = null)
        {
            if (bootstrapperType.IsNotEmpty())
            {
                var type = Type.GetType(bootstrapperType);
                var bootstrapper = Activator.CreateInstance(type).As<IBootstrapper>();

                var wrapped = new WrappedBootstrapper(bootstrapper);
                PackageRegistry.LoadPackages(x => x.Bootstrapper(wrapped));

                PackageRegistry.AssertNoFailures();

                return new BottleServiceRunner(wrapped.BottleServices());
            }

            var facility = new BottlesServicePackageFacility();
            PackageRegistry.LoadPackages(x => x.Facility(facility));
            

            PackageRegistry.AssertNoFailures();

            return facility.Aggregator.ServiceRunner();
        }
All Usage Examples Of Bottles.Services.WrappedBootstrapper::BottleServices