When using ResolverScopeGraph, only classes are cached. However, if you use ResolverScopeCache, then value types are also cached. Is there any reason for this difference? Graph is supposed to reuse services in a given resolution cycle - except this would only apply to classes, and value types would be created multiple times.
When using
ResolverScopeGraph
, only classes are cached. However, if you useResolverScopeCache
, then value types are also cached. Is there any reason for this difference? Graph is supposed to reuse services in a given resolution cycle - except this would only apply to classes, and value types would be created multiple times.