/// <summary> /// Backups the specified world to a medium using the specified storage client. /// </summary> /// <typeparam name="TClient">The type of the client.</typeparam> /// <param name="storageClient">The storage client.</param> /// <param name="backupRecord">The backup record.</param> public static void Backup <TClient>(IStorageClient <TClient> storageClient, BackupRecord backupRecord) where TClient : IConnection <TClient> { // long running process, use an isolated db connection. using (var db = storageClient.Clone()) { db.Store(backupRecord); db.Commit(); } // disposes te db connection. }