예제 #1
0
        public void Main()
        {
            var host = new Host();

            var mp = new SimplePlugin();
            var pf = new ProxyFactory(mp);
            pf.AddAdvice(new DelegateToHostExceptionHandlingAdvice(host));

            var proxy = (IPlugin)pf.GetProxy();

            proxy.DoWork();
        }
예제 #2
0
 public DelegateToHostExceptionHandlingAdvice(Host host)
 {
     _host = host;
 }