Skip to content

Commit

Permalink
refactor: use updated method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ArachisH committed Feb 22, 2024
1 parent 06cf6ae commit f90de24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Tanji.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,18 @@ public async Task RunAsync(CancellationToken cancellationToken = default)
string ticket = await _interception.InterceptGameTicketAsync(cancellationToken).ConfigureAwait(false);
_logger.LogInformation("Game Ticket: {Ticket}", ticket);

HConnection connection = await _interception.LaunchInterceptableClientAsync(ticket, HPlatform.Flash, cancellationToken).ConfigureAwait(false);
var connection = new HConnection();
connection.Connected += Connection_Connected;

await _interception.LaunchInterceptableClientAsync(ticket, connection, HPlatform.Flash, cancellationToken).ConfigureAwait(false);
}
while (!cancellationToken.IsCancellationRequested && _interception.IsInterceptingWebTraffic);
}

private void Connection_Connected(object? sender, ConnectedEventArgs e)
{
var connection = (HConnection?)sender;
if (connection == null) return;

}
}

0 comments on commit f90de24

Please sign in to comment.