mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Formatting cleanup.
This commit is contained in:
@@ -286,7 +286,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
// Take all ther received items and put them into the folder tree heirarchy
|
||||
foreach (InventoryItemBase item in items) {
|
||||
InventoryFolderImpl folder = resolvedFolders.ContainsKey(item.Folder) ? resolvedFolders[item.Folder] : null;
|
||||
ItemReceive(item, folder );
|
||||
ItemReceive(item, folder);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace OpenSim.Framework.Communications.Tests
|
||||
{
|
||||
UserProfileData userProfile = new UserProfileData();
|
||||
|
||||
// userProfile.ID = new UUID( Util.GetHashGuid( uri.ToString(), AssetCache.AssetInfo.Secret ));
|
||||
// userProfile.ID = new UUID(Util.GetHashGuid(uri.ToString(), AssetCache.AssetInfo.Secret));
|
||||
|
||||
return userProfile;
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace OpenSim.Framework
|
||||
public delegate void ParcelReturnObjectsRequest(
|
||||
int local_id, uint return_type, UUID[] agent_ids, UUID[] selected_ids, IClientAPI remote_client);
|
||||
|
||||
public delegate void ParcelDeedToGroup( int local_id, UUID group_id, IClientAPI remote_client);
|
||||
public delegate void ParcelDeedToGroup(int local_id, UUID group_id, IClientAPI remote_client);
|
||||
|
||||
public delegate void EstateOwnerMessageRequest(
|
||||
UUID AgentID, UUID SessionID, UUID TransactionID, UUID Invoice, byte[] Method, byte[][] Parameters,
|
||||
|
||||
@@ -348,7 +348,7 @@ namespace OpenSim.Framework
|
||||
/// <seealso cref="TryGetValue"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
void Remove( TKey key );
|
||||
void Remove(TKey key);
|
||||
|
||||
/// <summary>
|
||||
/// Removes elements that are associated with one of <paramref name="keys"/> from the <see cref="ICnmCache{TKey,TValue}"/>.
|
||||
@@ -364,7 +364,7 @@ namespace OpenSim.Framework
|
||||
/// <seealso cref="TryGetValue"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
void RemoveRange( IEnumerable<TKey> keys );
|
||||
void RemoveRange(IEnumerable<TKey> keys);
|
||||
|
||||
/// <summary>
|
||||
/// Add or replace an element with the provided <paramref name="key"/>, <paramref name="value"/> and <paramref name="size"/> to
|
||||
@@ -411,7 +411,7 @@ namespace OpenSim.Framework
|
||||
/// <seealso cref="TryGetValue"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
bool Set( TKey key, TValue value, long size );
|
||||
bool Set(TKey key, TValue value, long size);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <paramref name="value"/> associated with the specified <paramref name="key"/>.
|
||||
@@ -436,6 +436,6 @@ namespace OpenSim.Framework
|
||||
/// <seealso cref="RemoveRange"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
bool TryGetValue( TKey key, out TValue value );
|
||||
bool TryGetValue(TKey key, out TValue value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -490,13 +490,13 @@ namespace OpenSim.Framework.Servers
|
||||
public string StatReport(OSHttpRequest httpRequest)
|
||||
{
|
||||
// If we catch a request for "callback", wrap the response in the value for jsonp
|
||||
if ( httpRequest.Query.ContainsKey("callback"))
|
||||
if (httpRequest.Query.ContainsKey("callback"))
|
||||
{
|
||||
return httpRequest.Query["callback"].ToString() + "(" + m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version ) + ");";
|
||||
return httpRequest.Query["callback"].ToString() + "(" + m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version) + ");";
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version );
|
||||
return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,6 @@ using OpenMetaverse.StructuredData;
|
||||
|
||||
namespace OpenSim.Framework.Servers.HttpServer
|
||||
{
|
||||
public delegate OSD LLSDMethod( string path, OSD request, string endpoint );
|
||||
public delegate OSD LLSDMethod(string path, OSD request, string endpoint);
|
||||
public delegate OSD DefaultLLSDMethod(OSD request, IPEndPoint client);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenSim.Framework.Servers.HttpServer.Tests
|
||||
[Test]
|
||||
public void TestConstructor()
|
||||
{
|
||||
new BaseRequestHandlerImpl( null, null );
|
||||
new BaseRequestHandlerImpl(null, null);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace OpenSim.Framework.Servers.Tests
|
||||
TestHelper.InMethod();
|
||||
|
||||
// GetAssetStreamHandler handler =
|
||||
new GetAssetStreamHandler( null );
|
||||
new GetAssetStreamHandler(null);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace OpenSim.Framework.Servers.Tests
|
||||
[Test]
|
||||
public void TestVersionLength()
|
||||
{
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." );
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars.");
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace OpenSim.Framework
|
||||
DefaultStartupMsg = (string) configuration_result;
|
||||
break;
|
||||
case "default_grid_server":
|
||||
GridServerURL = new Uri( (string) configuration_result );
|
||||
GridServerURL = new Uri((string) configuration_result);
|
||||
break;
|
||||
case "grid_send_key":
|
||||
GridSendKey = (string) configuration_result;
|
||||
|
||||
@@ -1060,11 +1060,11 @@ namespace OpenSim.Framework
|
||||
|
||||
public static Guid GetHashGuid(string data, string salt)
|
||||
{
|
||||
byte[] hash = ComputeMD5Hash( data + salt );
|
||||
byte[] hash = ComputeMD5Hash(data + salt);
|
||||
|
||||
//string s = BitConverter.ToString(hash);
|
||||
|
||||
Guid guid = new Guid( hash );
|
||||
Guid guid = new Guid(hash);
|
||||
|
||||
return guid;
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace OpenSim.Framework
|
||||
{
|
||||
//int randNum = Util.RandomClass.Next(0, 1000);
|
||||
float range = setting.VisualParam.MaxValue - setting.VisualParam.MinValue;
|
||||
// float val =((float) randNum )/ ((float)(1000.0f / range));
|
||||
// float val = ((float) randNum) / ((float)(1000.0f / range));
|
||||
float val = (float)Util.RandomClass.NextDouble() * range * 0.2f;
|
||||
setting.Value = setting.VisualParam.MinValue + (range / 2) + val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user