当前位置: 首页>>代码示例>>C#>>正文


C# Puzzle.Proceed方法代码示例

本文整理汇总了C#中Puzzle.Proceed方法的典型用法代码示例。如果您正苦于以下问题:C# Puzzle.Proceed方法的具体用法?C# Puzzle.Proceed怎么用?C# Puzzle.Proceed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Puzzle的用法示例。


在下文中一共展示了Puzzle.Proceed方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandleCall

        public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
        {
            if (call.Method.DeclaringType == typeof(IPersistentObject))
                return call.Proceed();

            string property = GetPropertyName(call);
            IPersistentObject managed = (IPersistentObject)call.Target;
            object res = managed.GetPropertyValue(property);
            call.Proceed ();
            return res;
        }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:11,代码来源:EntityPropertyGetInterceptor.cs

示例2: HandleCall

 public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
 {
     Console.WriteLine("Enter");
     object res= call.Proceed();
     Console.WriteLine("Exit");
     return res;
 }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:7,代码来源:MyInterceptor.cs

示例3: HandleCall

 public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
 {
     Console.WriteLine("entering {0}", call.ValueSignature);
     object res = call.Proceed();
     Console.WriteLine("exiting {0} and returning '{1}'", call.ValueSignature,res);
     return res;
 }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:7,代码来源:SampleInterceptor.cs

示例4: HandleCall

 public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
 {
     object res = call.Proceed();
     ICanvasAware canvasAware = call.Target as ICanvasAware;
     if (canvasAware != null && canvasAware.Canvas != null)
     {
         canvasAware.Canvas.IsDirty = true;
     }
     return res;
 }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:10,代码来源:ShapePropertyInterceptor.cs

示例5: HandleCall

        public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
        {
            if (call.Method.DeclaringType == typeof(IPersistentObject))
                return call.Proceed();

            InterceptedParameter valueParameter = (InterceptedParameter)call.Parameters[0];

            string property = call.Method.Name.Substring(4);
            IPersistentObject managed = (IPersistentObject)call.Target;
            object res = call.Proceed();

            managed.SetReference(property, valueParameter.Value);

            if (!managed.Mute && !managed.Initializing)
                managed.Context.RegisterDirty(managed);

            managed.SetUnloaded(property, true);

            return res;
        }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:20,代码来源:EntityPropertySetInterceptor.cs

示例6: HandleCall

        public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
        {
            InterceptedParameter stateParameter = (InterceptedParameter)call.Parameters[0];
            //get the context (state) param
            object state = stateParameter.Value;

            IPersistentObject managed = (IPersistentObject)call.Target;

            //assign the context to the target object
            managed.Context = (Context)state;

            Initialize(call.Target as IPersistentObject);

            object res = call.Proceed();

            CheckIntegrity();

            return res;
        }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:19,代码来源:EntityCtorInterceptor.cs

示例7: HandleCall

 public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
 {
     Console.WriteLine("Entering : " + call.ValueSignature);
     return call.Proceed();
     Console.WriteLine("Returning from : " + call.ValueSignature);
 }
开发者ID:BackupTheBerlios,项目名称:puzzle-svn,代码行数:6,代码来源:LogInterceptor.cs


注:本文中的Puzzle.Proceed方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。