コード例 #1
0
        public void Initialize()
        {
            SimpleAspectAttribute.Reset();
            var aspectedObj    = new AspectedClass();
            var noAspectObject = new NoAspectClass();

            _aspectedObject = Interceptor.GetInterceptedObject <IAspectedOps>(aspectedObj, null);
            _noAspectObject = Interceptor.GetInterceptedObject <IAspectedOps>(noAspectObject, null);
        }
コード例 #2
0
 public void Initialize()
 {
     SimpleAspectAttribute.Reset();
     var aspectedObj = new AspectedClass();
     var noAspectObject = new NoAspectClass();
     _aspectedObject = Interceptor.GetInterceptedObject<IAspectedOps>(aspectedObj, null);
     _noAspectObject = Interceptor.GetInterceptedObject<IAspectedOps>(noAspectObject, null);
 }