February 2011
6 posts
5 tags
2 tags
2 tags
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()
...
4 tags
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...