/// <summary> /// Saves the current state and history states to a persisted state. Can be restored using <see cref="Load"/>. /// </summary> /// <param name="stateMachineSaver">Data to be persisted is passed to the saver.</param> public void Save(IStateMachineSaver <TState> stateMachineSaver) { Guard.AgainstNullArgument("stateMachineSaver", stateMachineSaver); this.stateMachine.Save(stateMachineSaver); }