Пример #1
0
 public MemberReferenceResolver(MonoProxy proxy, ExecutionContext ctx, SessionId sessionId, int scopeId, ILogger logger)
 {
     this.sessionId = sessionId;
     this.scopeId   = scopeId;
     this.proxy     = proxy;
     this.ctx       = ctx;
     this.logger    = logger;
     scopeCache     = ctx.GetCacheForScope(scopeId);
 }
 public MemberReferenceResolver(MonoProxy proxy, ExecutionContext ctx, MessageId msg_id, int scope_id, ILogger logger)
 {
     messageId   = msg_id;
     scopeId     = scope_id;
     this.proxy  = proxy;
     this.ctx    = ctx;
     this.logger = logger;
     scopeCache  = ctx.GetCacheForScope(scope_id);
 }
Пример #3
0
 public MemberReferenceResolver(MonoProxy proxy, ExecutionContext ctx, SessionId sessionId, JArray objectValues, ILogger logger)
 {
     this.sessionId = sessionId;
     scopeId        = -1;
     this.proxy     = proxy;
     this.ctx       = ctx;
     this.logger    = logger;
     scopeCache     = new PerScopeCache(objectValues);
     localsFetched  = true;
 }
Пример #4
0
        public PerScopeCache GetCacheForScope(int scope_id)
        {
            if (perScopeCaches.TryGetValue(scope_id, out PerScopeCache cache))
            {
                return(cache);
            }

            cache = new PerScopeCache();
            perScopeCaches[scope_id] = cache;
            return(cache);
        }