public void Start(string initial)
        {
            TracesProvider.TracesOutput.OutputTrace("Physalis framework cache: " + cache.FullName);

            if (bundles == null)
            {
                bundles = new Bundles();
            }
            else
            {
                throw new InvalidOperationException("The framework is already started");
            }

            TracesProvider.TracesOutput.OutputTrace("Loading initial bundle: " + initial);
            IBundle bundle = bundles.Add(initial, null);
            bundle.Start();
        }
        public void Start(string[] initials)
        {
            if (bundles == null)
            {
                bundles = new Bundles();
            }
            else
            {
                throw new InvalidOperationException("The framework is already started");
            }

            foreach(string path in initials)
            {
                TracesProvider.TracesOutput.OutputTrace("Loading: " + path);
                IBundle bundle = bundles.Add(path);
                bundle.Start();
            }
        }
        public void Start(string[] initials)
        {
            if (bundles == null)
            {
                bundles = new Bundles();
            }
            else
            {
                throw new InvalidOperationException("The framework is already started");
            }

            foreach (string path in initials)
            {
                TracesProvider.TracesOutput.OutputTrace("Loading: " + path);
                IBundle bundle = bundles.Add(path);
                bundle.Start();
            }
        }
Exemple #4
0
        public void Start(string initial)
        {
            TracesProvider.TracesOutput.OutputTrace("Physalis framework cache: " + cache.FullName);

            if (bundles == null)
            {
                bundles = new Bundles();
            }
            else
            {
                throw new InvalidOperationException("The framework is already started");
            }

            TracesProvider.TracesOutput.OutputTrace("Loading initial bundle: " + initial);
            IBundle bundle = bundles.Add(initial, null);

            bundle.Start();
        }
Exemple #5
0
        public void Intialize()
        {
            services   = new Services();
            storage    = new BundleStorage();
            data       = new DirectoryInfo(DATA_STORAGE);
            namespaces = new Namespaces();
            system     = new SystemBundle();
            bundles    = new Bundles();
            bundles.Install(system);

            services.Register(system,
                              new string [] { typeof(NamespacesAdmin).FullName },
                              new NamespacesAdmin(),
                              null);

//            startLevelService = new StartLevelImpl();
//            services.Register(  system,
//                                new String [] { typeof(StartLevel).FullName },
//                                startLevelService,
//                                null);
//            startLevelService.open();
        }