Add interface for database context factory

This commit is contained in:
Dean Herbert
2018-02-12 23:10:05 +09:00
parent 64cda9fd0f
commit a738664167
10 changed files with 34 additions and 15 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.Database
/// <summary>
/// Create a new <see cref="OsuDbContext"/> instance (separate from the shared context via <see cref="GetContext"/> for performing isolated operations.
/// </summary>
protected readonly DatabaseContextFactory ContextFactory;
protected readonly IDatabaseContextFactory ContextFactory;
/// <summary>
/// Refresh an instance potentially from a different thread with a local context-tracked instance.
@ -40,7 +40,7 @@ namespace osu.Game.Database
}
}
protected DatabaseBackedStore(DatabaseContextFactory contextFactory, Storage storage = null)
protected DatabaseBackedStore(IDatabaseContextFactory contextFactory, Storage storage = null)
{
ContextFactory = contextFactory;
Storage = storage;