public static CallTargetReturn EndMethod <TIntegration, TTarget>(TTarget instance, Exception exception, CallTargetState state) { if (IntegrationOptions <TIntegration, TTarget> .IsIntegrationEnabled) { return(EndMethodHandler <TIntegration, TTarget> .Invoke(instance, exception, state)); } return(CallTargetReturn.GetDefault()); }
public static CallTargetReturn EndMethod <TIntegration, TTarget>(TTarget instance, Exception exception, CallTargetState state) { DebugLog($"ProfilerOK: EndMethod<{typeof(TIntegration)}, {typeof(TTarget)}>({instance}, {exception?.ToString() ?? "(null)"}, {state})"); if (IntegrationOptions <TIntegration, TTarget> .IsIntegrationEnabled) { return(EndMethodHandler <TIntegration, TTarget> .Invoke(instance, exception, state)); } return(CallTargetReturn.GetDefault()); }