src/EntityFramework/Infrastructure/DependencyResolution/ResolverChain.cs
// <summary>
// Adds a new resolver to the top of the chain.
// </summary>
// <param name="resolver">The resolver to add.</param>
Adds a new resolver to the top of the chain.
Adds a new resolver to the top of the chain .
public virtual void Add(IDbDependencyResolver resolver)
        {
            Check.NotNull(resolver, "resolver");
            _resolvers.Push(resolver);
            _resolversSnapshot = _resolvers.ToArray();
        }
public virtual void Add ( IDbDependencyResolver resolver ) { Check . NotNull ( resolver , " " ) ; _resolvers . Push ( resolver ) ; _resolversSnapshot = _resolvers . ToArray ( ) ; }
Adds a new resolver to the top of the chain.
Adds a new resolver to the top of the chain .
// The idea here is that Add and GetService must all be thread-safe, but // Add is only called infrequently. Therefore each time Add is called a snapshot is taken // of the stack that can then be enumerated without needing to make a snapshot // every time the enumeration is asked for, which is the normal behavior for the concurrent // collections.
resolver
IDbDependencyResolver
The resolver to add.
The resolver to add .