Simple WCF. The simplest configuration.

The power of WCF is that it can be used to any kind of communication. All known old transmission protocols are covered by WCF and can be totally replaced by it.   Unfortunately the drawback of this flexibility is complicated configuration in case when we want to do something not standard. In WCF 4.0 this has been a little simplified, so now when you want to do simple thing…

By Mirek on (tags: WCF, categories: code, web)

Object-object mapping

I recently stumbled upon automapper. It’s a handy little library used for object-object mapping. Let’s take a look at that. The simplest usage If you find yourself having classes such as Foo, FooViewModel, FooListViewModel, FooDTO you probably have a decent amount of code which looks more or less like this: If you’re lazy like me, you probably wrapped that in some extension met…

By on (tags: automapper, categories: code)

Taming TFS - Automatic deployment of Click Once projects

We’ve covered deploying web application, now it’s time for click once. So let’s get to it. This is the end result: After some checks I’m retrieving the project files with “FindMatchingFiles” activity, then for each project and each configuration publishing the project and transferring it to the test server. Here’s the breakdown in detail. The “FindMatchingFiles” activity argume…

By on (tags: tfs, categories: infrastructure)

Breaking strong name in .net library assemblies.

Recently I was digging in Strong naming and signing in .net. I have found an interesting article on code project Building Security Awareness in .NET Assemblies which describe how the strong name can be easily removed and beaked from an executing assembly. I would like to present the approach that can be used with library assemblies in .net. What is a strong name (also called st…

By Mirek on (tags: Assembly signing, .net, Strong name, categories: code, security)