background preloader

Coding References

Facebook Twitter

Mobile WCF: Write an IM App with the .NET Compact Framework. Mobile WCF Write an IM App with the .NET Compact Framework Andrew Arnott Code download available at:WCFCompactFramework2008_Launch.exe(185 KB) An addressability problem with mobile devices has traditionally made it difficult to write Windows Mobile® applications that would receive data pushed down from servers.

This workaround can cause scalability problems on the server since it has to hang onto many requests at once instead of responding to them right away and closing the connections. Visual Studio® 2008 gives developers of Windows Mobile applications the ability to access a subset of Windows® Communication Foundation (WCF) functionality via the Microsoft® .NET Compact Framework 3.5, which solves many of these problems with two new binding elements to WCF that facilitate sending and receiving messages using e-mail as the transport. Mail Transports The first two actions you should take are to install Visual Studio 2008 and to decide on your target device. Writing a Windows Mobile App. Windows Phone 7 Final RTW Build 7003 Unlocked Emulator. An Event Based Rules Engine. Download source files - 18.5 Kb Introduction I have been in several situations where I needed to evaluate a set of rules and perform a specific action based on the results.

I have never been proud of the code I wrote for these rules; either massive switch statements, or a Gordian knot of if-else commands that quickly became convoluted and difficult to maintain. Testing becomes impossible as the number of paths through the maze becomes unknowable. What I need is a simple rules engine that allows me to write simple or complicated rules, rewire them as needed, and be able to test the individual rules without having to test the entire rule set. The idea rules engine I imagine should provide the following: There is a Rule that is to be invoked. One way to accomplish this is to use objects which have an Invoke method that follow the event signature.

The Rule Events There are four events used by the Rule: The RulePassed and RuleFailed events are used by the Rule to invoke other Rules. The BaseRule.