Пример #1
0
        private void OnExit(IJSCSGlue exiting, BridgeUpdater context)
        {
            exiting.ApplyOnListenable(_ListenerRegister.Off);

            if ((context == null) || (exiting.Type != JsCsGlueType.Object))
            {
                return;
            }

            _SessionCache.RemoveFromCSharpToJs(exiting);
            context.RequestJSCacheRemove(exiting);

            if (!exiting.CValue.GetType().HasReadWriteProperties())
            {
                return;
            }

            context.RequestUnlisten(exiting.JSValue);
        }
Пример #2
0
 private void ApplyOnListenableReferencedObjects(JSCBridgeListenableVisitor visitor)
 {
     _Root.ApplyOnListenable(visitor);
     _UnrootedEntities.ForEach(js => js.ApplyOnListenable(visitor));
 }
Пример #3
0
 public void Visit(IListenableObjectVisitor visitor)
 {
     _Root.ApplyOnListenable(visitor);
     _UnrootedEntities.ForEach(js => js.ApplyOnListenable(visitor));
 }
Пример #4
0
 private void OnEnter(IJSCSGlue entering)
 {
     entering.ApplyOnListenable(_ListenerRegister.On);
 }