... Home Contact

Krzysztof Koźmic's blog

You're doing it wrong.


Show appreciation: My Amazon.com Wish List

Me@Twitter

    Currently reading

    Article Categories

    Archives

    Post Categories

    MyPersonal

    Syndication:

    Tutorial

    There are 9 entries for the tag Tutorial

    Castle Dynamic Proxy tutorial part IX: Interface proxy with target

    This is part IX of my ongoing tutorial on Castle Dynamic Proxy. If you are new to it, you probably want to read previous parts first: Introduction The what, why and how Selecting which methods to intercept Breaking hard dependencies InterceptorSelector, fine grained control over proxying ...

    Castle Dynamic Proxy tutorial part VIII: Interface proxy without target

    This is part VIII of my ongoing tutorial on Castle Dynamic Proxy. If you are new to it, you probably want to read previous parts first: Introduction The what, why and how Selecting which methods to intercept Breaking hard dependencies InterceptorSelector, fine grained control over proxying ...

    Castle Dynamic Proxy tutorial part VI: handling non-virtual methods

    This is part VI of my ongoing tutorial on Castle Dynamic Proxy. If you are new to it, you probably want to read previous parts first: Introduction The what, why and how Selecting which methods to intercept Breaking hard dependencies InterceptorSelector, fine grained control over...

    Castle Dynamic Proxy tutorial part V: InterceptorSelector, fine grained control over proxying

    This is part V of my ongoing tutorial on Castle Dynamic Proxy. If you are new to it, you probably want to read previous parts first: Introduction The what, why and how Selecting which methods to intercept Breaking hard dependencies Our Freezable library is starting to work quite well. However, there are still few glitches we need...

    Castle Dynamic Proxy tutorial part IV: breaking hard dependencies

    In the last part of the tutorial we created a method GetInterceptedMethodsCountFor that I promised I’ll talk about soon. While we’re at it, we’re going to fix another design flaw of our Freezable class. To do its work, it holds a hard reference to each and every freezable object it creates. This is obviously not a big deal if you create only a handful of freezable objects that are we want to be alive for the entire time the application is running. private static readonly IDictionary<object, IFreezable> _freezables = new Dictionary<object, IFreezable>(); However, in most cases the objects we create are transient,...

    Castle Dynamic Proxy tutorial part III: Selecting which methods to intercept

    Welcome to the 3rd part of my Dynamic Proxy tutorial. If you’re new here, you may take a look at previous parts first Castle DynamicProxy tutorial part I: Introduction Castle Dynamic Proxy tutorial part II: The what, why and how   We’ll start by updating our CallLoggingInterceptor class, so that we can use it in tests. What we need from it, is to enhance its functionality, so that it not only logs (to the Console) the calls, but also keeps a count of calls. To do that we add a property called Count, which gets incremented each...

    Castle Dynamic Proxy tutorial part II: The what, why and how

    Welcome to part two of my tutorial on Castle Dynamic Proxy. If you’re new to it, you might want to read part 1 as well, although if you’re new to the concepts behind dynamic proxy, you may actually want to read this part first, as it outlines the what, why and how of dynamic proxy. After I re-read my initial post, I realized that I didn’t actually provide proper introduction in it. I mean, I made an introduction to the sample project we’re creating along this series, but I feel I should have provided more explanation for people who aren’t familiar...

    Castle DynamicProxy tutorial part I: Introduction

    I’ve been experimenting lately quite a lot with Castle Dynamic Proxy, creating prototype for a project I work on at work and I even implemented a small feature that was missing from it. Generally, Dynamic Proxy (DP from now on) is a great, lightweight framework, but it’s greatest downside is lack of documentation. It’s surprisingly logical a easy to use, but since there are almost no resources on the web, that could help you get started with it, I decided to give it a go, and start a small tutorial series of posts, that will introduce various features of DP...

    Extension Methods "Hello World" I: Introduction

    I decided that it's about time to familiarize myself with new features of .NET 3.5 and C# 3.0. And I don't mean see an overview, because I've read many times about what's new in it, and I have basic understanding of all those new goodies that new version of framework/language brings. What I mean by familiarize is understand thoroughly and that is what this "Hello World" series (hopefully) is (hopefully) about. I'm gonna start with extension methods as this is what I've started playing with already, and then... well we'll see :) Extension Methods are a completely new concept to OOP world (at least...