/// <summary> /// Inits computation resources /// </summary> public static void Initialize() { // Computation mode specific settings: azure or app domain ? switch (Shared.Config.TaskExecutionMode) { case TaskExecutionMode.Azure: AzureBatchManager.InitializeAsync().Wait(); break; case TaskExecutionMode.Linear: case TaskExecutionMode.Parallel: AppDomainRunner.Initialize(); break; default: throw new ArgumentOutOfRangeException(); } }