synchronize Server/Scripts project properties
whitespace/comment changes in Serialization.cs and ScriptCompiler.cs proper dispose pattern for Listener remove IDisposable from FileLogger
This commit is contained in:
parent
abe9f5acb2
commit
83bf81b7ee
6 changed files with 21 additions and 12 deletions
|
|
@ -30,9 +30,9 @@ using System.Runtime.InteropServices;
|
||||||
[assembly: AssemblyTitle("RunUO Server Core")] //Having just RunUO there is reundant, ie, RunUO.exe with the word 'RunUO' under it
|
[assembly: AssemblyTitle("RunUO Server Core")] //Having just RunUO there is reundant, ie, RunUO.exe with the word 'RunUO' under it
|
||||||
[assembly: AssemblyDescription("UO Server Software")]
|
[assembly: AssemblyDescription("UO Server Software")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("The RunUO Team")]
|
[assembly: AssemblyCompany("RunUO")]
|
||||||
[assembly: AssemblyProduct("")]
|
[assembly: AssemblyProduct("RunUO")]
|
||||||
[assembly: AssemblyCopyright("")]
|
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -735,7 +735,7 @@ namespace Server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FileLogger : TextWriter, IDisposable
|
public class FileLogger : TextWriter
|
||||||
{
|
{
|
||||||
private string m_FileName;
|
private string m_FileName;
|
||||||
private bool m_NewLine;
|
private bool m_NewLine;
|
||||||
|
|
|
||||||
|
|
@ -267,12 +267,22 @@ namespace Server.Network
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose(bool disposing)
|
||||||
Socket socket = Interlocked.Exchange<Socket>( ref m_Listener, null );
|
{
|
||||||
|
if (disposing)
|
||||||
|
{
|
||||||
|
Socket socket = Interlocked.Exchange<Socket>(ref m_Listener, null);
|
||||||
|
|
||||||
if ( socket != null ) {
|
if (socket != null)
|
||||||
socket.Close();
|
{
|
||||||
|
socket.Close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose() {
|
||||||
|
Dispose(true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -89,12 +89,11 @@ namespace Server
|
||||||
AppendCompilerOption( ref sb, "/d:MONO" );
|
AppendCompilerOption( ref sb, "/d:MONO" );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//These three defines are legacy, ie, depreciated.
|
//These three defines are deprecated
|
||||||
if( Core.Is64Bit )
|
if( Core.Is64Bit )
|
||||||
AppendCompilerOption( ref sb, "/d:x64" );
|
AppendCompilerOption( ref sb, "/d:x64" );
|
||||||
|
|
||||||
AppendCompilerOption( ref sb, "/d:Framework_2_0" );
|
AppendCompilerOption( ref sb, "/d:Framework_2_0" );
|
||||||
|
|
||||||
AppendCompilerOption( ref sb, "/d:Framework_4_0" );
|
AppendCompilerOption( ref sb, "/d:Framework_4_0" );
|
||||||
|
|
||||||
return (sb == null ? null : sb.ToString());
|
return (sb == null ? null : sb.ToString());
|
||||||
|
|
|
||||||
|
|
@ -1394,7 +1394,6 @@ namespace Server
|
||||||
private static int m_ThreadCount = 0;
|
private static int m_ThreadCount = 0;
|
||||||
public static int ThreadCount { get { return m_ThreadCount; } }
|
public static int ThreadCount { get { return m_ThreadCount; } }
|
||||||
|
|
||||||
|
|
||||||
private int BufferSize;
|
private int BufferSize;
|
||||||
|
|
||||||
private long m_LastPos, m_CurPos;
|
private long m_LastPos, m_CurPos;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
<NoStandardLibraries>false</NoStandardLibraries>
|
<NoStandardLibraries>false</NoStandardLibraries>
|
||||||
<AssemblyName>RunUO</AssemblyName>
|
<AssemblyName>RunUO</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
<TargetFrameworkProfile>
|
||||||
|
</TargetFrameworkProfile>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<PublishUrl>publish\</PublishUrl>
|
<PublishUrl>publish\</PublishUrl>
|
||||||
<Install>true</Install>
|
<Install>true</Install>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue