From 2c2f10e156c62aa1d95923ff5309f2be7f08faeb Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 2 Feb 2009 20:59:12 +0000
Subject: * Establish OnOarFileSaved EventManager event and subscribe to that
instead of passing in a waithandle to the archiver * This matches the
existing OnOarFileLoaded event * This brings up the question of how these
things can be made generic so that they don't have to be tied into
EventManager, but that's a topic for another day
---
.../Environment/Interfaces/IRegionArchiverModule.cs | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
(limited to 'OpenSim/Region/Environment/Interfaces')
diff --git a/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs b/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
index d9f8c08..559d2a6 100644
--- a/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
+++ b/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
@@ -26,7 +26,6 @@
*/
using System.IO;
-using System.Threading;
namespace OpenSim.Region.Environment.Interfaces
{
@@ -38,6 +37,10 @@ namespace OpenSim.Region.Environment.Interfaces
///
/// 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.
+ ///
///
void ArchiveRegion(string savePath);
@@ -45,21 +48,27 @@ namespace OpenSim.Region.Environment.Interfaces
/// Archive the region to a stream.
///
///
+ /// This method occurs asynchronously. If you want notification of when it has completed then subscribe to
+ /// the EventManager.OnOarFileSaved event.
+ ///
///
- ///
- /// Pass in a wait handle if you want to be signalled when the operation completes.
- ///
- void ArchiveRegion(Stream saveStream, EventWaitHandle waitHandle);
+ void ArchiveRegion(Stream saveStream);
///
/// Dearchive the given region archive into the scene
///
+ ///
+ /// If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
+ ///
///
void DearchiveRegion(string loadPath);
///
- /// Dearchive a region from a stream
+ /// Dearchive a region from a stream.
///
+ ///
+ /// If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
+ ///
///
void DearchiveRegion(Stream loadStream);
}
--
cgit v1.1