Ejemplo n.º 1
0
 public void CallServicedComponentClass()
 {
     Engine e = new Engine("CallServicedComponentClass");
     IAroundInterceptor myInterceptor = new MyInterceptor();
     SignatureAspect sa = new SignatureAspect("labb", "*", "*", myInterceptor);
     e.Configuration.Aspects.Add(sa);
     DummyServiced proxy = e.CreateProxy<DummyServiced>();
     proxy.Foo();
 }
Ejemplo n.º 2
0
        public void CallServicedComponentClass()
        {
            Engine             e             = new Engine("CallServicedComponentClass");
            IAroundInterceptor myInterceptor = new MyInterceptor();
            SignatureAspect    sa            = new SignatureAspect("labb", "*", "*", myInterceptor);

            e.Configuration.Aspects.Add(sa);
            DummyServiced proxy = e.CreateProxy <DummyServiced>();

            proxy.Foo();
        }