Chapter 5
Messages and Proxies
So far, we ve used only the out-of-the-box functionality of .NET Remoting. In this chapter, we ll begin customizing various elements of the .NET Remoting infrastructure, starting with proxies. Specifically, we ll look at creating a custom proxy that implements a simple load-balancing scheme. We ll develop another proxy that shows how ProxyAttribute can be used to intercept activation. We ll also show you how to use call context to transfer extra information with the method call. However, before we discuss customizing proxies, let s examine the various kinds of messages a proxy might encounter.