// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity
{
using System;
using System.Collections.Generic;
using System.Data.Entity.Config;
///
/// A resolver that allows to add dependency resolvers at runtime.
///
///
/// This class isn't thread-safe as the tests using it aren't expected to be run in parallel.
///
public class MutableResolver : IDbDependencyResolver
{
private static readonly Dictionary> _resolvers = new Dictionary>();
private static readonly MutableResolver _instance = new MutableResolver();
private MutableResolver()
{
}
///
public object GetService(Type type, object key)
{
Func