Chapter 11. Context and Interception
One of the most important aspects of .NET as a component technology is its use of contexts to facilitate component services . The core design pattern is interception: intercepting a call from a client to an object, performing some pre-call processing, forwarding the call to the object, and doing some post-call processing before returning control back to the client. Objects indicate to .NET which component services they need, and using interception, .NET makes sure the objects get the required runtime environment. .NET component services are mostly the result of integrating COM+ into .NET. In addition, .NET allows you to provide your own custom component services. This chapter starts by providing a brief introduction to interception-based component services. You will then learn how .NET components can use such services and what the underlying architecture is that enables them. The chapter concludes by demonstrating how you can extend .NET by providing your own custom component services.
Get Programming .NET Components, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.