/// <summary> /// Stops the workflow runtime. /// </summary> public static void Stop() { if (current == null) { throw new ApplicationException("Runtime not created."); } lock (currentLock) { current.StopWorkflowRuntime(); current = null; } }
/// <summary> /// Starts the workflow runtime. /// </summary> public static void Start(DatabaseSettings databaseSettings) { if (current != null) { throw new ApplicationException("Runtime already created."); } lock (currentLock) { current = new SampleWorkflowRuntime(databaseSettings); current.InitialiseAndStartWorkflowRuntime(); } }