private void CacheGlobal(IJavascriptObject jsobject, IJsCsMappedBridge ibo) { var id = jsobject.GetID(); if (id == 0) { return; } ibo.SetJsId(id); _FromJavascriptGlobal[id] = ibo; }
public IJSCSGlue GetCached(IJavascriptObject globalkey) { return(_IWebView.Evaluate(() => { if (!globalkey.HasRelevantId()) { return null; } IJSCSGlue res = null; _FromJavascript_Global.TryGetValue(globalkey.GetID(), out res); return res; })); }
public IJSCSGlue GetCachedLocal(IJavascriptObject localkey) { return(!localkey.HasRelevantId() ? null : _FromJavascript_Local.GetOrDefault(localkey.GetID())); }
public IJSCSGlue GetGlobalCached(IJavascriptObject globalkey) { return(!globalkey.HasRelevantId() ? null : _FromJavascript_Global.GetOrDefault(globalkey.GetID())); }
private IJSCSGlue GetFromJavascript(IJavascriptObject jsobject) { return(_FromJavascript_Global[jsobject.GetID()]); }
public IJsCsGlue GetCached(IJavascriptObject globalkey) { var id = globalkey.GetID(); return((id == 0) ? null : _FromJavascriptGlobal.GetOrDefault(id)); }
public IJSCSGlue GetCached(IJavascriptObject globalkey) { return _IWebView.Evaluate(() => { if (!globalkey.HasRelevantId()) return null; IJSCSGlue res = null; _FromJavascript_Global.TryGetValue(globalkey.GetID(), out res); return res; }); }
private IJSCSGlue GetCachedLocal(IJavascriptObject localkey) { if (!localkey.HasRelevantId()) return null; IJSCSGlue res = null; _FromJavascript_Local.TryGetValue(localkey.GetID(), out res); return res; }
private void Update(IJSObservableBridge ibo, IJavascriptObject jsobject) { ibo.SetMappedJSValue(jsobject, this); if (jsobject.HasRelevantId()) _FromJavascript_Global[jsobject.GetID()] = ibo; }
private IJSCSGlue GetFromJavascript(IJavascriptObject jsobject) { return _FromJavascript_Global[jsobject.GetID()]; }
public IJSCSGlue GetCachedLocal(IJavascriptObject localkey) { return !localkey.HasRelevantId() ? null : _FromJavascript_Local.GetOrDefault(localkey.GetID()); }
public IJSCSGlue GetGlobalCached(IJavascriptObject globalkey) { return !globalkey.HasRelevantId() ? null : _FromJavascript_Global.GetOrDefault(globalkey.GetID()); }
private void CacheGlobal(IJavascriptObject jsobject, IJSObservableBridge ibo) { if (jsobject.HasRelevantId()) _FromJavascript_Global[jsobject.GetID()] = ibo; }