protected virtual Task <bool> NeedsProfileAsync(MethodMetadata method)
 {
     return(Task.FromResult(false));
 }
 protected virtual bool NeedsProfile(MethodMetadata method)
 {
     return(false);
 }
 protected virtual void ExitingMethod(MethodMetadata method, double timeSpent)
 {
 }
 protected virtual Task ExitingMethodAsync(MethodMetadata method, double timeSpent)
 {
     return(Task.CompletedTask);
 }
 protected virtual void EnteringMethod(MethodMetadata method)
 {
 }
 protected virtual Task EnteringMethodAsync(MethodMetadata method)
 {
     return(Task.CompletedTask);
 }
Beispiel #7
0
 public AopContextFrame(MethodMetadata method, bool profile = false) : this(profile)
 {
     Method = method;
 }