2021-01-07 05:07:36 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using Realms;
|
|
|
|
|
|
|
|
namespace osu.Game.Database
|
|
|
|
{
|
|
|
|
public interface IRealmFactory
|
|
|
|
{
|
2021-01-13 08:34:44 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The main realm context, bound to the update thread.
|
|
|
|
/// </summary>
|
2021-04-23 17:13:29 +00:00
|
|
|
Realm Context { get; }
|
2021-01-13 08:34:44 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2021-10-01 13:23:51 +00:00
|
|
|
/// Create a new realm context for use on the current thread.
|
2021-01-13 08:34:44 +00:00
|
|
|
/// </summary>
|
2021-09-30 14:42:40 +00:00
|
|
|
Realm CreateContext();
|
2021-01-07 05:07:36 +00:00
|
|
|
}
|
|
|
|
}
|