Dynamic Proxy Tutorial

Cas­tle Dynamic Proxy tuto­r­ial is a series of blog­posts that talk in details about var­i­ous parts of Cas­tle Dynam­icProxy frame­work. So far the fol­low­ing parts have been published:

This tuto­r­ial cov­ers Dynam­icProxy ver­sion 2.2 As of now cur­rent ver­sion is 2.5 which has seen some changes. Those are mostly func­tional enhance­ments and do not change the behav­ior of the frame­work. That means that the tuto­r­ial is still pretty much 100% applic­a­ble to the new version.

  1. Intro­duc­tion

  2. The what, why and how

  3. Select­ing which meth­ods to intercept

  4. Break­ing hard dependencies

  5. Inter­cep­torS­e­lec­tor, fine grained con­trol over proxying

  6. Han­dling non-virtual methods

  7. Kinds of proxy objects

  8. Inter­face proxy with­out target

  9. Inter­face proxy with target

  10. Inter­face prox­ies with tar­get interface

  11. When one inter­face is not enough

  12. Caching

  13. Mix in this, mix in that

  14. Per­sist­ing proxies

  15. Pat­terns and Antipatterns