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); }
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; }
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); }