Rename StartAsync -> ConnectAsync

This commit is contained in:
Dan Balasescu 2022-11-02 11:44:16 +09:00
parent 46d1713e28
commit c9108ce41b
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace osu.Game.Online
Connection.Closed += InvokeClosed;
}
public override Task StartAsync(CancellationToken cancellationToken) => Connection.StartAsync(cancellationToken);
public override Task ConnectAsync(CancellationToken cancellationToken) => Connection.StartAsync(cancellationToken);
public override async ValueTask DisposeAsync()
{

View File

@ -13,7 +13,7 @@ namespace osu.Game.Online
protected Task InvokeClosed(Exception? exception) => Closed?.Invoke(exception) ?? Task.CompletedTask;
public abstract Task StartAsync(CancellationToken cancellationToken);
public abstract Task ConnectAsync(CancellationToken cancellationToken);
public virtual ValueTask DisposeAsync()
{

View File

@ -92,7 +92,7 @@ namespace osu.Game.Online
cancellationToken.ThrowIfCancellationRequested();
await CurrentConnection.StartAsync(cancellationToken).ConfigureAwait(false);
await CurrentConnection.ConnectAsync(cancellationToken).ConfigureAwait(false);
Logger.Log($"{ClientName} connected!", LoggingTarget.Network);
isConnected.Value = true;