logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dries...@apache.org
Subject svn commit: r332587 - /logging/log4net/trunk/src/Util/SystemInfo.cs
Date Fri, 11 Nov 2005 15:58:54 GMT
Author: drieseng
Date: Fri Nov 11 07:58:42 2005
New Revision: 332587

URL: http://svn.apache.org/viewcvs?rev=332587&view=rev
Log:
Removed reference to System.Process.StartTime to fix build on .NET CF 1.0. Removed extra spaces.

Modified:
    logging/log4net/trunk/src/Util/SystemInfo.cs

Modified: logging/log4net/trunk/src/Util/SystemInfo.cs
URL: http://svn.apache.org/viewcvs/logging/log4net/trunk/src/Util/SystemInfo.cs?rev=332587&r1=332586&r2=332587&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/SystemInfo.cs (original)
+++ logging/log4net/trunk/src/Util/SystemInfo.cs Fri Nov 11 07:58:42 2005
@@ -310,7 +310,7 @@
 		/// <remarks>
 		/// <para>
 		/// This is the time at which the log4net library was loaded into the
-		/// AppDomain. Due to reports of a hang in the call to <see cref="System.Diagnostics.Process.StartTime"/>
+		/// AppDomain. Due to reports of a hang in the call to <c>System.Diagnostics.Process.StartTime</c>
 		/// this is not the start time for the current process.
 		/// </para>
 		/// <para>
@@ -884,13 +884,13 @@
 				NameBased = 0x03,
 				Random = 0x04
 			}
-         
+
 			// constants that are used in the class
 			private class Const
 			{
 				// number of bytes in guid
 				public const int ByteArraySize = 16;
-         
+
 				// multiplex variant info
 				public const int VariantByte = 8;
 				public const int VariantByteMask = 0x3f;
@@ -921,12 +921,12 @@
 				public static extern bool CryptGenRandom(
 					IntPtr hProv, int dwLen, byte[] pbBuffer);
 			}
-      
+
 			// all static methods
 			private PocketGuid()
 			{
 			}
-      
+
 			/// <summary>
 			/// Return a new System.Guid object.
 			/// </summary>
@@ -934,7 +934,7 @@
 			{
 				IntPtr hCryptProv = IntPtr.Zero;
 				Guid guid = Guid.Empty;
-         
+
 				try
 				{
 					// holds random bits for guid
@@ -947,14 +947,14 @@
 						throw new SystemException(
 							"Failed to acquire cryptography handle.");
 					}
-      
+
 					// generate a 128 bit (16 byte) cryptographically random number
 					if (!WinApi.CryptGenRandom(hCryptProv, bits.Length, bits))
 					{
 						throw new SystemException(
 							"Failed to generate cryptography random bytes.");
 					}
-            
+
 					// set the variant
 					bits[Const.VariantByte] &= Const.VariantByteMask;
 					bits[Const.VariantByte] |= 
@@ -964,7 +964,7 @@
 					bits[Const.VersionByte] &= Const.VersionByteMask;
 					bits[Const.VersionByte] |= 
 						((int)GuidVersion.Random << Const.VersionByteShift);
-         
+
 					// create the new System.Guid object
 					guid = new Guid(bits);
 				}
@@ -974,7 +974,7 @@
 					if (hCryptProv != IntPtr.Zero)
 						WinApi.CryptReleaseContext(hCryptProv, 0);
 				}
-         
+
 				return guid;
 			}
 		}



Mime
View raw message