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(); } }