mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
* Move common string aggregation for caps seed path to a method in CapsUtil
This commit is contained in:
@@ -35,6 +35,16 @@ namespace OpenSim.Framework.Communications.Capabilities
|
||||
/// </summary>
|
||||
public class CapsUtil
|
||||
{
|
||||
/// <summary>
|
||||
/// Generate a CAPS seed path using a previously generated CAPS object path component
|
||||
/// </summary>
|
||||
/// <param name="capsKey"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetCapsSeedPath(string capsObjectPath)
|
||||
{
|
||||
return "/CAPS/" + capsKey + "0000/";
|
||||
}
|
||||
|
||||
public static string GetRandomCapsPath()
|
||||
{
|
||||
UUID caps = UUID.Random();
|
||||
|
||||
Reference in New Issue
Block a user