Move HubClientConnector retrieval to IAPIProvider

This commit is contained in:
Dean Herbert
2021-02-15 16:31:00 +09:00
parent dffccef1f0
commit 9ad38ab20e
9 changed files with 60 additions and 21 deletions

View File

@ -1,6 +1,8 @@
// 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.
#nullable enable
using System.Threading.Tasks;
using osu.Framework.Bindables;
using osu.Game.Users;
@ -95,6 +97,13 @@ namespace osu.Game.Online.API
/// </summary>
void Logout();
/// <summary>
/// Constructs a new <see cref="IHubClientConnector"/>. May be null if not supported.
/// </summary>
/// <param name="clientName">The name of the client this connector connects for, used for logging.</param>
/// <param name="endpoint">The endpoint to the hub.</param>
IHubClientConnector? GetHubConnector(string clientName, string endpoint);
/// <summary>
/// Create a new user account. This is a blocking operation.
/// </summary>