Aynchronous Web Request Handling - Help Required
... string pdir, LogEventHandler leh) { _prefixes = prefixes; _virtualDir = vdir; _physicalDir = pdir; _LogEvent += leh; _logCallback = new LogCallback(LogThis); _pxeb = new PersistentXmlEventBuffer(); } public void Start() { _listening = true; _pump = new Thread(new ThreadStart(Pump)); _pump ...
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-framework/20446
List.ForEach
... AddRange(SerialPort.GetPortNames()); string sPortsAvailable = ""; foreach (string sPort in lAvailablePorts) { sPortsAvailable += " " + sPort; } this.LogThis("Ports Available: " + sPortsAvailable); however, I think I can do it like this: List<string> lAvailablePorts ... SerialPort.GetPortNames()); available = new StringBuilder(); ports.ForEach(delegate(string port) { available.Append(" ").Append(port); } ); this.LogThis
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-framework/17723
Global constants and object
... using the following model: public sealed class Logger { private Logger ( ) { } ... public static void LogThis ( ) { } public static void LogThat ( ) { } } Then in code I can: Logger.LogThis(); Logger.LogThat(); This doesn't truly make the class static it simply prevents ... following: public sealed class Logger { private Logger ( ) { } public Logger Current { get { return m_Instance; } } public void ...
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/39887
Accessing Parameter Value with Attribute
... use a parameter of the tagged method? For instance, [LogThis ( user) ] public TagThis ( string user ) { ... } Larry R Nicholas Paldino [.NET/C# MVP] Larry, No, there ...
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/71311
Auto Complete Drop Down Problem
... if(window.event) { theKey = window.event.keyCode; binIE = true; } else { theKey = e.which; binIE = false; } logThis("new keycode = " + theKey); if(theKey == 8) { // check for backspace searchValue = ""; // clear the ...
http://www.dotnetmonster.com/Uwe/Forum.aspx/asp-net/89528
recursive function causing service to stall at start up
... the fake event handling doing now. if (OnDemandRunning) { break; } String BatchFile = BatchDirectory.GetValue(counter).ToString(); logthis("Batchfile" + BatchFile, 1); File.Delete(BatchFile); } System.Threading.Thread.Sleep(5000); RunBatch(); } } Now I'm ...
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/83053