Added SetRepositoryInstanceFactory method so that in the future devs could set their own RepositoryInstanceFactory on startup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user