public T GetJsBridge <T>(Func <T> factory) where T : JsBridgeBase { if (_jsBridgeSet) { return((T)_jsBridge); } _jsBridge = factory(); _jsBridgeSet = true; try { if (_inner != null) { _inner.ObjectForScripting = _jsBridge; } } catch (ArgumentException) { Logging.Warning("Failed to set: " + (_jsBridge?.GetType().FullName ?? @"NULL")); throw; } return((T)_jsBridge); }
public JsProxyBase(JsBridgeBase bridge) { _bridge = bridge; }
protected JsProxyCSharp(JsBridgeBase bridge) : base(bridge) { }