| Servergeek |
| Mickey Williams' weblog |
|
My C# BookMicrosoft Press PageOn Amazon Racing LinksSlalomSkateboarder.comNCDSA slalom page 3dm Ick Sticks Pocket Pistols .NETScott GuthrieRob Howard .NET Notes BradA LonghornScobleChris Sells ServicesDon BoxChristian Weyer All Things Distributed Ingo Rammer Tim Ewald BlawgsBag and BaggageSCOTUS Blog EconArg MaxCapital Spectator OtherWilliam Gibson |
Saturday, May 03, 2003
IHttpHandler and IHttpModule Slide DeckPosted 5:34 PMAbout six months ago I gave a talk on the IHttpHandler and IHttpModule interfaces, including some discussion on how to create new endpoint types for ASP.NET. The slides have been hanging around on my laptop ever since. They're looking lonely - download the slides and make them happy. Thursday, May 01, 2003
Gyro 1.0 Released!Posted 9:31 AMDon Syme just posted a note to the Rotor mailing list: Gyro 1.0 is now available for download at http://research.microsoft.com/research/downloads. The Gyro community website is at http://gyro.sscli.net, and Microsoft Research's web page for generics is at http://research.microsoft.com/projects/clrgen. Good news for everyone that wants to try out C# generics before, say, October... Wednesday, April 30, 2003
Tracker OffsetsPosted 1:08 PMJust got an email from LongSkate. Someone's getting tracker offset racing trucks, nah, nah, nah.... Should look something like this, but powdercoated red. Tuesday, April 29, 2003
Well, that didn't take long...Posted 11:40 AMFixed a bug in EventLogReader. The new version is 1.0.0.1. The recommended workaround is to download the new version ;)
EventLogReaderPosted 12:28 AMRecently I needed a class that consumed information from the Event Log. I'm a big fan of XmlReader, so I crufted up EventLogReader, which uses the same cursor-centric model found in XmlReader. Client code that uses EventLogReader looks something like:
string log = "Application";
string machine = "laguna";
string source = "EAPOL";
EventLogReader reader = new EventLogReader(log, machine, source);
while(reader.Read())
{
Console.WriteLine("{0} {1}, {2}",
reader.TimeGenerated.ToShortDateString(),
reader.TimeGenerated.ToShortTimeString(),
reader.Message);
}
As you iterate over the event log entries, EventLogReader exposes properties (just like EventLogItem) for each item in the log. A zip that contains the library source is available - I'll post some sample code that uses the library in the next couple of days. Right now the only code that uses the library is a framework for new ASP.NET endpoint types that I built using IHttpHandler, and it tends to obscure the EventLogReader. The library passes FxCop except for warnings about strong naming and complaints about returning arrays from properties. Feel free to add a strong name yourself, since you have the source - I'd rather not give out my real keys; the array issue is because I'm just surfacing the return value from the EventLogItem type. Also, in this release code coverage is moderate - I'll build up some unit tests shortly, but it works for my demos and my debugging pages - YMMV. Bugs, complaints, etc. to mickey at servergeek dot com. eventlogreader.zipMonday, April 28, 2003
CLS CompilancePosted 7:45 AMBrad posted about component vendors that aren't CLS compliant... When I see a commercial component that fails to meet even the most basic levels of standard community behavior, I immediately think about problems I can't see. If a vendor doesn't understand the importance of CLS compliance (a very low bar to hurdle in my opinion), what other mistakes in judgement have they made? Lack of CLS is visible. Mishandling the Dispose pattern is not. Do they take the time to perf-test the component? How serious are they about other (more difficult) standards, if they can't manage the simplest? Do they use FxCop? Doubtful, since FxCop complains about CLS compliance. What do I look for in a component?
Do these things, and I'll buy your component. Don't do them, and I'll mock you for years into the future.
|