<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>adam mokan &#187; c#</title>
	<atom:link href="http://www.adammokan.com/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adammokan.com</link>
	<description>ramblings of a software developer, mad scientist, geek, and father</description>
	<lastBuildDate>Tue, 22 Nov 2011 19:11:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Slides from my &#8220;Intro to SignalR&#8221; presentation at Desert Code Camp</title>
		<link>http://www.adammokan.com/2011/11/08/intro-to-signalr-slides/</link>
		<comments>http://www.adammokan.com/2011/11/08/intro-to-signalr-slides/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 04:45:36 +0000</pubDate>
		<dc:creator>adam.mokan</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[desert code camp 2011.2]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[dot net]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[nuget]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[signalr]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[asp.net mvc 3]]></category>
		<category><![CDATA[dcc11]]></category>
		<category><![CDATA[desert code camp]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[long-polling]]></category>
		<category><![CDATA[SignalR]]></category>

		<guid isPermaLink="false">http://www.adammokan.com/?p=84</guid>
		<description><![CDATA[I uploaded the slides from my &#8220;Intro to SignalR&#8221; presentation at Desert Code Camp 2011.2 which was held this past weekend (11/05/2011) at Chandler-Gilbert Community College. I did add some additional bullet points and text content to the slide deck since I&#8217;m not a big fan of standing in front of a bunch of that [...]]]></description>
			<content:encoded><![CDATA[<p>I uploaded the slides from my &#8220;Intro to SignalR&#8221; presentation at Desert Code Camp 2011.2 which was held this past weekend (11/05/2011) at Chandler-Gilbert Community College.</p>
<p>I did add some additional bullet points and text content to the slide deck since I&#8217;m not a big fan of standing in front of a bunch of that during a presentation and would rather talk with the attendees and show some code. Either way, check the slides out if you&#8217;d like.</p>
<p><a href="http://www.slideshare.net/adammokan/introduction-to-signalr-10082193" target="_blank">http://www.slideshare.net/adammokan/introduction-to-signalr-10082193</a></p>
<p>Next up is some tweaks to my samples, which were not cooperating with me so much during my session. I will expose that repo on Github soon and post an update.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adammokan.com/2011/11/08/intro-to-signalr-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presenting on SignalR at Desert Code Camp 2011.2</title>
		<link>http://www.adammokan.com/2011/11/02/presenting-on-signalr-at-desert-code-camp-2011-2/</link>
		<comments>http://www.adammokan.com/2011/11/02/presenting-on-signalr-at-desert-code-camp-2011-2/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 01:35:44 +0000</pubDate>
		<dc:creator>adam.mokan</dc:creator>
				<category><![CDATA[asp.net mvc3]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[desert code camp 2011.2]]></category>
		<category><![CDATA[dot net]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[signalr]]></category>
		<category><![CDATA[asp.net mvc 3]]></category>
		<category><![CDATA[dcc]]></category>
		<category><![CDATA[SignalR]]></category>
		<category><![CDATA[web sockets]]></category>

		<guid isPermaLink="false">http://www.adammokan.com/?p=81</guid>
		<description><![CDATA[I will be presenting on SignalR at Desert Code Camp this weekend (November 5th, 2011), for anyone in the metro-Phoenix area. My SignalR session begins at 11:30am (hour long) and will be held in room IRN-125. For more info on Desert Code Camp, visit http://nov2011.desertcodecamp.com]]></description>
			<content:encoded><![CDATA[<p>I will be <a href="http://nov2011.desertcodecamp.com/session/413" target="_blank">presenting on SignalR</a> at Desert Code Camp this weekend (November 5th, 2011), for anyone in the metro-Phoenix area.</p>
<p>My SignalR session begins at 11:30am (hour long) and will be held in room IRN-125.</p>
<p>For more info on Desert Code Camp, visit <a href="http://nov2011.desertcodecamp.com" target="_blank">http://nov2011.desertcodecamp.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adammokan.com/2011/11/02/presenting-on-signalr-at-desert-code-camp-2011-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New sessions added to Desert Code Camp 2011</title>
		<link>http://www.adammokan.com/2011/02/25/new-sessions-added-to-desert-code-camp-2011/</link>
		<comments>http://www.adammokan.com/2011/02/25/new-sessions-added-to-desert-code-camp-2011/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 19:25:47 +0000</pubDate>
		<dc:creator>adam.mokan</dc:creator>
				<category><![CDATA[asp.net mvc3]]></category>
		<category><![CDATA[desert code camp 2011.1]]></category>
		<category><![CDATA[dot net]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[nuget]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[templify]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[desert code camp]]></category>
		<category><![CDATA[gangplank jr]]></category>

		<guid isPermaLink="false">http://www.adammokan.com/?p=60</guid>
		<description><![CDATA[Based on feedback from last night&#8217;s presentation I gave at the Southeast Valley .NET User Group (if you attended the SEVDNUG meeting, please don&#8217;t forget to rate the presentation here), I have decided to add a new &#8220;intro&#8221; session for ASP.NET MVC 3 at Desert Code Camp 2011, which will be held at Chandler-Gilbert Community [...]]]></description>
			<content:encoded><![CDATA[<p>Based on feedback from last night&#8217;s presentation I gave at the <a href="http://www.sevdnug.org/" target="_blank">Southeast Valley .NET User Group</a> (if you attended the SEVDNUG meeting, please don&#8217;t forget to rate the presentation <a href="http://speakerrate.com/talks/5423" target="_blank">here</a>), I have decided to add a new &#8220;intro&#8221; session for ASP.NET MVC 3 at <a href="http://apr2011.desertcodecamp.com/" target="_blank">Desert Code Camp 2011</a>, which will be held at Chandler-Gilbert Community College on Saturday, April 2nd 2011. The event is 100% free.</p>
<p>Below are the sessions I will be teaching and links for you to show interest, which will help the organizers determine the room and time it will be held (based on projected attendance/interest level).</p>
<p><strong>Development Sessions</strong></p>
<ul><a href="http://apr2011.desertcodecamp.com/session/282" target="_blank">Intro to ASP.NET MVC 3</a> &#8211; basic intro for those with little to no experience with the Microsoft MVC implementation.</ul>
<ul><a href="http://apr2011.desertcodecamp.com/session/200" target="_blank">Getting Things Done With ASP.NET MVC 3</a> &#8211; Coverage of NuGet, Scaffolding, and other ways to get up and running faster.</ul>
<p><strong>Non-Development Sessions</strong></p>
<ul><a href="http://apr2011.desertcodecamp.com/session/269" target="_blank">Using simple electronics to make noise! (ages 7+)</a> &#8211; This is a <a href="http://gangplankjr.com/" target="_blank">Gangplank Jr</a> session aimed at helping kids each build a simple sound generating circuit they can take with them.</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.adammokan.com/2011/02/25/new-sessions-added-to-desert-code-camp-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC Controller Navigator</title>
		<link>http://www.adammokan.com/2010/10/06/asp-net-mvc-controller-navigator/</link>
		<comments>http://www.adammokan.com/2010/10/06/asp-net-mvc-controller-navigator/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 18:36:26 +0000</pubDate>
		<dc:creator>adam.mokan</dc:creator>
				<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[dot net]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[controllernavigator]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://www.adammokan.com/?p=37</guid>
		<description><![CDATA[I have watched a number of developers new to ASP.NET MVC start a new project and have trouble with concepts like routing. The concepts of routing and controllers can be tough to grasp after years of development where you are thinking about a file on disk and you just entered the URL for that file. [...]]]></description>
			<content:encoded><![CDATA[<p>I have watched a number of developers new to ASP.NET MVC start a new project and have trouble with concepts like routing. The concepts of routing and controllers can be tough to grasp after years of development where you are thinking about a file on disk and you just entered the URL for that file. It got me thinking about making life a little easier during the development process when you may not have your navigation plumbing in place and just want to zip through a couple controllers and show someone your app. Phil Haack&#8217;s <a href="http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx">Routing Debugger</a> has always been a great help during development on a site with custom routes and his tool (and source code) gave me a huge head start on what I wanted to do.</p>
<p>So I came up with an assembly I&#8217;m calling &#8220;ControllerNavigator&#8221; for now (<a href="http://github.com/amokan/ControllerNavigator">http://github.com/amokan/ControllerNavigator</a>). I didn&#8217;t spend time to come up with a cool name like the Ruby folks normally do yet. Will have to reference a cult-classic 80s flick or something if I do much more work on it. To use ControllerNavigator (man, I&#8217;m hating the name already), you reference the assembly in your MVC project, and add a line to your Application_Start() in Global.asax.</p>
<pre class="brush: csharp; highlight:[7];">
protected void Application_Start()
{
	AreaRegistration.RegisterAllAreas();

	RegisterRoutes(RouteTable.Routes);

	ControllerNavigator.Navigator.DisplayNavigator(RouteTable.Routes);
}
</pre>
<p>That generates this markup at a custom route, which you could set as the default start page in Visual Studio during development.</p>
<p><a href="http://www.adammokan.com/wp-content/uploads/2010/10/ControllerNavigator.png"><img src="http://www.adammokan.com/wp-content/uploads/2010/10/ControllerNavigator.png" alt="" title="ControllerNavigator" width="794" height="300" class="alignnone size-full wp-image-38" /></a></p>
<p>What happens in DisplayNavigator is some fun C# reflection code that queries your MVC assembly to find all of the controllers, methods in those controllers, and any actionfilters/attributes they have. There are options before calling DisplayNavigator() to filter out certain attributes and also to specify which base class your controllers are inherited from, if different than System.Web.Mvc.Controller. Then, by stealing some of Mr Haack&#8217;s code from his RouteDebugger, it takes the data and generates a custom route (defaults to &#8220;/Navigator&#8221;) that shows a table listing your controllers, methods, method return types (ActionMethod, JsonMethod, etc), and finally a hyperlink that will launch that route in a new window.</p>
<p>I have some more ideas to make this more useful, which are listed on <a href="http://github.com/amokan/ControllerNavigator">the GitHub page</a>, but in the meantime feel free to check it out or steal the code to make your own version. If you have questions or comments, hit me up on <a href="http://twitter.com/adammokan">twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adammokan.com/2010/10/06/asp-net-mvc-controller-navigator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows Phone 7 development</title>
		<link>http://www.adammokan.com/2010/03/18/windows-phone-7-development/</link>
		<comments>http://www.adammokan.com/2010/03/18/windows-phone-7-development/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 14:30:00 +0000</pubDate>
		<dc:creator>adam.mokan</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[windows phone 7]]></category>
		<category><![CDATA[xna]]></category>
		<category><![CDATA[mix10]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[silverlight 4]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[winphone7]]></category>

		<guid isPermaLink="false">http://www.adammokan.com/2010/03/18/windows-phone-7-development/</guid>
		<description><![CDATA[So, the WinPhone7 development tools &#34;preview&#34; (or whatever its called) was released earlier this week. I&#39;m, personally, pretty excited. Silverlight development is something I&#39;ve been wanting to do more of and I&#39;m an absolute nerd when it comes to gadgets. I was an early smartphone adopter going back to the WindowsCE/Mobile days, then a PalmOS [...]]]></description>
			<content:encoded><![CDATA[<p>So, the WinPhone7 development tools &quot;preview&quot; (or whatever its called) was released earlier this week. I&#39;m, personally, pretty excited. Silverlight development is something I&#39;ve been wanting to do more of and I&#39;m an absolute nerd when it comes to gadgets.</p>
<p>I was an early smartphone adopter going back to the WindowsCE/Mobile days, then a PalmOS phone, then an iPhone, and now I&#39;m using a Google Nexus One. I love my Nexus One, but I&#39;ve not found the time to get my Java hat on and mess with much development lately. Being that the new WinPhone7 development is Silverlight, XNA, and C#, that will be very easy for me to mess with some development during lunch at work and things like that. I have some XNA experience from years ago and have been wanting to mess with that again sometime, too. This all gives me a good excuse.</p>
<p>I&#39;m pretty excited about the technology stack.&#0160;<a href="http://hodnick.com/post/453609901/wp7devtoolsimpressions" target="_blank" title="http://hodnick.com/post/453609901/wp7devtoolsimpressions">This</a>&#0160;blog post by Mike Hodnick (who does some awesome Silverlight audio/synthesizer development) describes his first-impressions of the tools. Sounds like the emulator is somewhat limited, but I&#39;m sure we will see improvements over the next few months.</p>
<p>With this announcement and the Silverlight 4 RC release at MIX10, I expect this year to blow up with Silverlight development.</p>
<p><a href="http://www.silverlight.net/getstarted/silverlight-4/" target="_blank">Get started with Silverlight 4</a></p>
<p><a href="http://www.silverlight.net/getstarted/silverlight-4/" target="_blank"></a> <a href="http://developer.windowsphone.com/windows-phone-7-series/" target="_blank">Windows Phone 7 development site</a> </p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adammokan.com/2010/03/18/windows-phone-7-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

