Add project files.
This commit is contained in:
24
LeagueAPI/Utils/IPortTokenBehavior.cs
Normal file
24
LeagueAPI/Utils/IPortTokenBehavior.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace LeagueAPI.Utils;
|
||||
|
||||
public interface IPortTokenBehavior
|
||||
{
|
||||
bool TryGet(Process process, out string remotingAuthToken, out int appPort, [NotNullWhen(false)] out Exception? exception);
|
||||
|
||||
void MapArguments(IReadOnlyList<string> args, Dictionary<string, string> _args)
|
||||
{
|
||||
foreach (string arg in args)
|
||||
{
|
||||
if (arg.Length > 0 && arg.Contains('='))
|
||||
{
|
||||
string text = arg;
|
||||
string[] array = text[2..].Split("=");
|
||||
string key = array[0];
|
||||
string value = array[1];
|
||||
_args[key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user