aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-02 20:59:12 +0000
committerJustin Clarke Casey2009-02-02 20:59:12 +0000
commit2c2f10e156c62aa1d95923ff5309f2be7f08faeb (patch)
treec6631296849e076264ce8e034d29ca117750bfa5 /OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs
parent* As per http://opensimulator.org/mantis/view.php?id=3065 (diff)
downloadopensim-SC-2c2f10e156c62aa1d95923ff5309f2be7f08faeb.zip
opensim-SC-2c2f10e156c62aa1d95923ff5309f2be7f08faeb.tar.gz
opensim-SC-2c2f10e156c62aa1d95923ff5309f2be7f08faeb.tar.bz2
opensim-SC-2c2f10e156c62aa1d95923ff5309f2be7f08faeb.tar.xz
* 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
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Interfaces/IRegionArchiverModule.cs21
1 files changed, 15 insertions, 6 deletions
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 @@
26 */ 26 */
27 27
28using System.IO; 28using System.IO;
29using System.Threading;
30 29
31namespace OpenSim.Region.Environment.Interfaces 30namespace OpenSim.Region.Environment.Interfaces
32{ 31{
@@ -38,6 +37,10 @@ namespace OpenSim.Region.Environment.Interfaces
38 /// <summary> 37 /// <summary>
39 /// Archive the region to the given path 38 /// Archive the region to the given path
40 /// </summary> 39 /// </summary>
40 ///
41 /// This method occurs asynchronously. If you want notification of when it has completed then subscribe to
42 /// the EventManager.OnOarFileSaved event.
43 ///
41 /// <param name="savePath"></param> 44 /// <param name="savePath"></param>
42 void ArchiveRegion(string savePath); 45 void ArchiveRegion(string savePath);
43 46
@@ -45,21 +48,27 @@ namespace OpenSim.Region.Environment.Interfaces
45 /// Archive the region to a stream. 48 /// Archive the region to a stream.
46 /// </summary> 49 /// </summary>
47 /// 50 ///
51 /// This method occurs asynchronously. If you want notification of when it has completed then subscribe to
52 /// the EventManager.OnOarFileSaved event.
53 ///
48 /// <param name="saveStream"></param> 54 /// <param name="saveStream"></param>
49 /// <param name="waitHandle"> 55 void ArchiveRegion(Stream saveStream);
50 /// Pass in a wait handle if you want to be signalled when the operation completes.
51 /// </param>
52 void ArchiveRegion(Stream saveStream, EventWaitHandle waitHandle);
53 56
54 /// <summary> 57 /// <summary>
55 /// Dearchive the given region archive into the scene 58 /// Dearchive the given region archive into the scene
56 /// </summary> 59 /// </summary>
60 ///
61 /// If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
62 ///
57 /// <param name="loadPath"></param> 63 /// <param name="loadPath"></param>
58 void DearchiveRegion(string loadPath); 64 void DearchiveRegion(string loadPath);
59 65
60 /// <summary> 66 /// <summary>
61 /// Dearchive a region from a stream 67 /// Dearchive a region from a stream.
62 /// </summary> 68 /// </summary>
69 ///
70 /// If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
71 ///
63 /// <param name="loadStream"></param> 72 /// <param name="loadStream"></param>
64 void DearchiveRegion(Stream loadStream); 73 void DearchiveRegion(Stream loadStream);
65 } 74 }