static InteropContextManager()
 {
     mutex = new Object();
     database = new InteropDatabase();
     allRuntimes = new List<Runtime>();
 }
Example #2
0
        public Runtime(InteropDatabase interopDatabase, IBridge bridge, bool allowCallbacks, bool enableLogging)
        {
            database = interopDatabase;
            this.bridge = bridge;
            this.allowCallbacks = allowCallbacks;
            nextObjectId = 0;
            idToObjectCache = new Dictionary<int, object>();
            objectToIdCache = new Dictionary<object, int>();
            keyToObjectCache = new Dictionary<TypeAndKeyPair, object>();
            objectToKeyCache = new Dictionary<TypeAndObjectPair, string>();
            proxyToIdCache = new Dictionary<object, int>();
            objectHasBeenExported = new Dictionary<object, int>();
            objectToDisconnect = new Dictionary<object, Action>();
            exportedMethodBaseToId = new Dictionary<MethodBase, int>();
            idToExportedMethodBase = new Dictionary<int, MethodBase>();
            loadedTypeStructures = new Dictionary<Type, int>();
#if TRACE_LOGGING
            this.enableLogging = enableLogging;
#else
            if (enableLogging)
                log = new List<string>();
            indent = 0;
#endif
        }
Example #3
0
 static InteropContextManager()
 {
     mutex       = new Object();
     database    = new InteropDatabase();
     allRuntimes = new List <Runtime>();
 }