Files
cefsharp/CefSharp.Example/ModelBinding/MethodInterceptorLogger.cs
T
amaitland 3199872247 JSB - Pass params to IMethodInterceptor.Intercept
Breaking change

Resolves #2909
2019-09-27 08:17:43 +10:00

21 lines
620 B
C#

// Copyright © 2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Diagnostics;
using CefSharp.ModelBinding;
namespace CefSharp.Example.ModelBinding
{
public class MethodInterceptorLogger : IMethodInterceptor
{
object IMethodInterceptor.Intercept(Func<object[], object> method, object[] parameters, string methodName)
{
object result = method(parameters);
Debug.WriteLine("Called " + methodName);
return result;
}
}
}