From 63936d442ca7e6bdc0f09a5e974c57b3b5726353 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Wed, 15 Apr 2009 19:12:37 +0000
Subject: * Make it possible to add a request id to load and save oar requests
* This allows specific requests to be identified.
---
.../Framework/Interfaces/IRegionArchiverModule.cs | 23 ++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/Framework/Interfaces')
diff --git a/OpenSim/Region/Framework/Interfaces/IRegionArchiverModule.cs b/OpenSim/Region/Framework/Interfaces/IRegionArchiverModule.cs
index 601b83e..530fb79 100644
--- a/OpenSim/Region/Framework/Interfaces/IRegionArchiverModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IRegionArchiverModule.cs
@@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+using System;
using System.IO;
namespace OpenSim.Region.Framework.Interfaces
@@ -43,6 +44,17 @@ namespace OpenSim.Region.Framework.Interfaces
///
///
void ArchiveRegion(string savePath);
+
+ ///
+ /// Archive the region to the given path
+ ///
+ ///
+ /// This method occurs asynchronously. If you want notification of when it has completed then subscribe to
+ /// the EventManager.OnOarFileSaved event.
+ ///
+ ///
+ /// If supplied, this request Id is later returned in the saved event
+ void ArchiveRegion(string savePath, Guid requestId);
///
/// Archive the region to a stream.
@@ -52,7 +64,8 @@ namespace OpenSim.Region.Framework.Interfaces
/// the EventManager.OnOarFileSaved event.
///
///
- void ArchiveRegion(Stream saveStream);
+ /// If supplied, this request Id is later returned in the saved event
+ void ArchiveRegion(Stream saveStream, Guid requestId);
///
/// Dearchive the given region archive. This replaces the existing scene.
@@ -74,7 +87,8 @@ namespace OpenSim.Region.Framework.Interfaces
/// If true, the loaded region merges with the existing one rather than replacing it. Any terrain or region
/// settings in the archive will be ignored.
///
- void DearchiveRegion(string loadPath, bool merge);
+ /// If supplied, this request Id is later returned in the saved event
+ void DearchiveRegion(string loadPath, bool merge, Guid requestId);
///
/// Dearchive a region from a stream. This replaces the existing scene.
@@ -95,7 +109,8 @@ namespace OpenSim.Region.Framework.Interfaces
///
/// If true, the loaded region merges with the existing one rather than replacing it. Any terrain or region
/// settings in the archive will be ignored.
- ///
- void DearchiveRegion(Stream loadStream, bool merge);
+ ///
+ /// If supplied, this request Id is later returned in the saved event
+ void DearchiveRegion(Stream loadStream, bool merge, Guid requestId);
}
}
--
cgit v1.1