IBloggable - implemented
-
Using Autofac DynamicProxy2 Interceptors with MVC3–Part 2
Continuing from the previous post, the interceptor is now ready to be registered and consumed.
-
Using Autofac DynamicProxy2 Interceptors with MVC3–Part 1
Autofac is an IoC container and using DynamicProxy we can intercept method calls to perform custom logic. What this means is that, you can actually add ‘hooks’ to methods in your code so that when these methods are called, you automatically invoke an ‘interceptor’ method that wraps the call to your method.
-
Some cool features introduced in ReSharper 6
I recently upgraded to ReSharper 6 and the experience so far has only been positive. Here are the top things for which I said ‘Good job Jetbrains’.
-
RSS Feed moved to Odiogo
I have moved my feeds to Odiogo – Automatic podcast generation and “Near-human” quality text-to-speech are the features that prompted me to make the switch.
-
Registering KnownType types at runtime using IsAssignableFrom()
While doing some reflection, I hit this method IsAssignableFrom(). MSDN says:
-
Extension methods on a null object instance
Extension methods gave developers with a lot of bandwidth to do interesting (read ‘cool’) things. But there are a couple of things that we need to be aware of while using these extension methods.
-
IEnumerator.Current property and IEnumerator.MoveNext method
Here’s a question: What happens to the Current property of an IEnumerator before and after the MoveNext() call? When I say ‘after the MoveNext() call’, I mean after MoveNext() returns a false indicating an end of the collection.
-
Sort method versus OrderBy LINQ extension method
I have a class Product with an Id and a Name as properties. There are multiple ways of getting a list of products to display in sorted/ordered fashion, say, by the Name of the product. The two I’m concerned about here are the Sort and the OrderBy extension method through LINQ and the difference between them.
-
WCF Service Trace Viewer Part 2
Continuing from the previous part, now we’ll have a look at what happens when we call the service using WSHttpBinding. For this, I have to instantiate my LearnWcfService service passing the WSHttp binding endpoint to the constructor. The rest of the method runs the exact same instructions as before. I have also changed the instantiateData attribute in the app.config file to ClientLogWsHttp.svclog, just to keep the log files separate.
-
WCF Service Trace Viewer Part 1
I hit upon this tool SvcTraceViewer.exe and found it quite interesting. Usually located at <drive>:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools (for version .net 4.0), this tool helps you to locate an error that’s happening behind the scenes. It also gives you a better understanding of how things flow with a service.