You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original design was to require a GetResolver call with the required Type, and if it matched, the resolver was returned. Calling the resolver returned the appropriate value. The override instance was deciding if it held the appropriate value and if it matched the required type. In version 5.x, this logic was moved into the container, making this approach obsolete. But, it is still uses two method calls to get the value.
Solution
The ResolverOverride class no longer implements method GetResolver. Instead it implements IResolve interface directly and provides held value in one step.
The text was updated successfully, but these errors were encountered:
ResolverOverride
During resolution, types derived from
ResolverOverride
are used to provide dependency values that override those resolved from the container.Problem
The original design was to require a
GetResolver
call with the requiredType,
and if it matched, the resolver was returned. Calling the resolver returned the appropriate value. The override instance was deciding if it held the appropriate value and if it matched the required type. In version 5.x, this logic was moved into the container, making this approach obsolete. But, it is still uses two method calls to get the value.Solution
The
ResolverOverride
class no longer implements methodGetResolver
. Instead it implementsIResolve
interface directly and provides held value in one step.The text was updated successfully, but these errors were encountered: