Server.AggressorInfo.DumpAccess C# (CSharp) Méthode

DumpAccess() public static méthode

public static DumpAccess ( ) : void
Résultat void
		public static void DumpAccess()
		{
			using ( StreamWriter op = new StreamWriter( "warnings.log", true ) )
			{
				op.WriteLine( "Warning: Access to queued AggressorInfo:" );
				op.WriteLine( new System.Diagnostics.StackTrace() );
				op.WriteLine();
				op.WriteLine();
			}
		}

Usage Example

 public void Refresh()
 {
     if (this.m_Queued)
     {
         AggressorInfo.DumpAccess();
     }
     this.m_LastCombatTime = DateTime.Now;
     this.m_Reported       = false;
 }