Rename register methods to better explain their purpose

This commit is contained in:
Dean Herbert
2022-01-24 14:37:36 +09:00
parent d7a9c5fd41
commit 40aa873190
15 changed files with 27 additions and 27 deletions

View File

@ -272,7 +272,7 @@ namespace osu.Game.Database
where T : RealmObjectBase
{
if (!RealmContextFactory.CurrentThreadSubscriptionsAllowed)
throw new InvalidOperationException($"Make sure to call {nameof(RealmContextFactory)}.{nameof(RealmContextFactory.Register)}");
throw new InvalidOperationException($"Make sure to call {nameof(RealmContextFactory)}.{nameof(RealmContextFactory.RegisterForNotifications)}");
return collection.SubscribeForNotifications(callback);
}