Added SetRepositoryInstanceFactory method so that in the future devs could set their own RepositoryInstanceFactory on startup.

This commit is contained in:
Shannon Deminick
2012-12-09 09:07:50 +05:00
parent e0a7be7237
commit c3c62f916c

View File

@@ -14,7 +14,16 @@ namespace Umbraco.Core.Persistence
internal RepositoryInstanceResolver(RepositoryInstanceFactory registrar)
: base(registrar)
{
}
}
/// <summary>
/// Can be used by developers at runtime to set their own RepositoryInstanceFactory at app startup
/// </summary>
/// <param name="factory"></param>
public void SetRepositoryInstanceFactory(RepositoryInstanceFactory factory)
{
Value = factory;
}
/// <summary>
/// Return the repository based on the type