本文整理汇总了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;
}
示例2: HandleCall
public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
{
Console.WriteLine("Enter");
object res= call.Proceed();
Console.WriteLine("Exit");
return res;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: HandleCall
public object HandleCall(Puzzle.NAspect.Framework.MethodInvocation call)
{
Console.WriteLine("Entering : " + call.ValueSignature);
return call.Proceed();
Console.WriteLine("Returning from : " + call.ValueSignature);
}