public static RepositoryFactories Instance() { // Uses lazy initialization. // Note: this is not thread safe. if (_instance == null) { _instance = new RepositoryFactories(); } return(_instance); }
public RepositoryProvider(RepositoryFactories repositoryFactories) { _repositoryFactories = repositoryFactories; Repositories = new Dictionary <Type, object>(); }