internal static void AddScoped(this IDependencyTable dependencyTable, IResolverContext context, IDependencyResolver resolver) { dependencyTable.ScopedTable.Add(DependencyTableHelper.GetScopedKey(context, resolver), context.CompleteValue); }
/// <summary> /// 从缓存中读取作用域值 /// </summary> internal static bool TryGetScoped(this IDependencyTable dependencyTable, IResolverContext context, IDependencyResolver resolver, out Object value) { return(dependencyTable.ScopedTable.TryGetValue(DependencyTableHelper.GetScopedKey(context, resolver), out value)); }