February 2011
6 posts
5 tags
Feb 21st
1 note
2 tags
Feb 20th
2 notes
2 tags
Feb 19th
1 note
4 tags
How to create a simple Windows Service that uses a...
I was recently tasked with creating a simple windows service that can send a heartbeat every few seconds to one of our wcf endpoints.  It has been awhile since I wrote a windows service however it turned out to be a lot easier than I remembered. Service.cs public partial class Service : ServiceBase { private List<string> _endPoints; private Timer _timer; public Service() ...
Feb 3rd
8 notes
4 tags
Feb 2nd
2 notes
4 tags
Differences between and
With the introduction of .NET 4 a new syntax was introduced for asp.net applications.  This new addition is  <%:fooBar%> What <%:%> is actually doing is html encoding the variable before it is outputted to the response.  This can help in preventing XSS attacks on your web applications. Example: <div> <% string htmlMarkup = "<h1>I am some html...
Feb 2nd