public static void Main(string[] args) { { // start main systems LogManager.MakeInstance(new LogManager()); CaptureSystem.MakeInstance(new CaptureSystem()); TrackingSystem.MakeInstance(new TrackingSystem()); VirtualDeviceManager.MakeInstance(new VirtualDeviceManager()); } { // prepare content managers ContentMaster.MakeInstance(new ContentMaster()); var contentSettings = new ContentManagerSettings(); string resourceRoot = ContentMaster.FindResourceRoot(); contentSettings.SetResourcePaths(resourceRoot, resourceRoot, "(no-file)"); string userRoot = ContentMaster.FindConfigRoot(); contentSettings.SetConfigPaths(userRoot, userRoot, "(no-file)"); ContentMaster.Instance.Load(contentSettings); } { // load last configuration var profile = ContentMaster.Instance.Profiles.LoadDefaultProfile(); new ProfileActivator().ActivateProfile(profile).Wait(); } { // start webserver var server = new Webface.WebfaceServer(); server.Start(); Console.ReadLine(); server.Stop(); } { // cleanup main systems VirtualDeviceManager.MakeInstance(null); TrackingSystem.MakeInstance(null); CaptureSystem.MakeInstance(null); LogManager.MakeInstance(null); EquipmentMaster.MakeInstance(null); } }
public override void Load(ContentManagerSettings settings) { this.settings = settings; Loaded = true; }