WCF Shared Exception Handling Approach

In one of the projects we are using WCF as a gateway that routes or aggregates messages to or from other services. We are trying to keep the business logic implementation away from this layer and move it to the backend and use it more as a way to provide a canonical interface for other clients. We stumbled upon a situation that we required to pass the exceptions from one service to other services. The first solution was: ...

March 18, 2014 · 4 min · Amir Mohtasebi

2013

Laziness at the end of 2013 begs for a blog post reviewing the long way I came last year. To put it in a nutshell, year 2013, at least since March, was the best year I've ever had. Moving to a new and completely different environment, less stress, new job, and talented, nice people made this year a perfect one. Last year around this time, I was thinking, miserably, if I made a right choice? Since I was a teenager I always made my decisions to prioritise work and investing on software development stuff over studying in good and high profile colleges and unis. Something all my friends voted against. What makes 2013 special is that proved my decision was right. My skill, not my college degrees, helped me to find my stability and survive. ...

December 31, 2013 · 2 min · Amir Mohtasebi

Using Unity for Aspect Oriented Programming and Interception – Part 2

In the previous post, I used unity in order to implement interception in an application. The implementation was very easy but at the same time very limited. For example, there is no way to limit the methods or namespaces we want to intercept. Policy Injection provides various ways of creating matching rules. My favorite rules are Namespace Matching Rule and Member Name Matching Rule. As the names imply, the former is defining the matching namespace(s) and latter is defining the name of the member(s). ...

October 25, 2013 · 2 min · Amir Mohtasebi

Using Unity for Aspect Oriented Programming and Interception – Part 1

Aspect Oriented Programming (AOP) aims to increase modularity by separation of cross-cutting concerns. Without knowing about the jargon and software engineering terms, probably the first time a software developer thinks about this is when s/he is thinking about implementing logging and exception handling in an application. If you are an old VB6 developer who used to write the whole application in one module (I used to do that), you are going to implement something like this: ...

October 24, 2013 · 5 min · Amir Mohtasebi
Mastodon