- loadbalancing_src.zip
- Bin
- LoadBalancingClientTest
- LoadBalancingLibrary
- LoadBalancingWebTest
- LoadMonitoringLibrary
- LoadReportingLibrary
- MachineLoadMonitoringServer
- MachineLoadReportingServer
- Resources
- Cluster.ico
- Setups
- LoadBalancingClientSideSetup
- LoadBalancingClientSideSetup.vdproj
- LoadBalancingServerSideSetup
- LoadBalancingServerSideSetup.vdproj
- SourceCodeSetup
- SourceCodeSetup.vdproj
- WebAppSetup
- WebAppSetup.vdproj
- SharedFiles
- SharedLibrary
- SoftwareLoadBalancing.sln
|
//////////////////////////////////////////////////////////////////////////////
// .NET Dynamic Software Load Balancing
// A Draft Implementation of an Idea for .NET Dynamic Software Load Balancing
// (c) 2002, Stoyan Damov (stoyan_damov@hotmail.com)
// The software comes �AS IS�, with all faults and no warranties.
//////////////////////////////////////////////////////////////////////////////
#pragma once
#if !defined (Tracer_H)
#define Tracer_H
#include "stdafx.h"
namespace SoftwareLoadBalancing
{
public __gc class Tracer
{
PUBLIC:
Tracer (String __gc* owner)
{
if (0 == owner)
this->owner = S"";
else
this->owner = String::Concat (owner, S": ");
}
[ConditionalAttribute (S"DEBUG")]
void MiniTrace (String __gc* message)
{
Console::Write (message);
}
[ConditionalAttribute (S"DEBUG")]
void Trace (String __gc* message)
{
Console::Write (owner);
Console::WriteLine (message);
}
[ConditionalAttribute (S"DEBUG")]
void Trace (String __gc* format, Object __gc* arg)
{
Console::Write (owner);
Console::WriteLine (format, arg);
}
[ConditionalAttribute (S"DEBUG")]
void Trace (String __gc* format, Object __gc* arg1, Object __gc* arg2)
{
Console::Write (owner);
Console::WriteLine (format, arg1, arg2);
}
[ConditionalAttribute (S"DEBUG")]
void Trace (String __gc* format, Object __gc* arg1, Object __gc* arg2, Object __gc* arg3)
{
Console::Write (owner);
Console::WriteLine (format, arg1, arg2, arg3);
}
[ConditionalAttribute (S"DEBUG")]
void Trace (String __gc* format, Object __gc* arg1, Object __gc* arg2, Object __gc* arg3, Object __gc* arg4)
{
Console::Write (owner);
Console::WriteLine (format, arg1, arg2, arg3, arg4);
}
PRIVATE:
String __gc* owner;
};
} // namespace
#endif // Tracer_H
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I'm crazy about programming, bleeding-edge technologies and my wife, Irina. Thinking seriously to start living in Centurian time.
The image shows me, happy :P
My blog