Share managed runtime client access
This commit is contained in:
parent
1e9ba3a8bb
commit
a1fa5f1425
6 changed files with 71 additions and 112 deletions
|
|
@ -42,6 +42,16 @@ public static class AetheriaUnityRuntimeClientProvider
|
|||
return _runtimeClient;
|
||||
}
|
||||
|
||||
public static AetheriaClient ResolveClient(AetheriaRuntimeStateBootReport stateBoot, string runtimeId = "")
|
||||
{
|
||||
if (stateBoot == null)
|
||||
throw new ArgumentNullException(nameof(stateBoot));
|
||||
|
||||
return ResolveClient(
|
||||
stateBoot.StateFilePath,
|
||||
string.IsNullOrWhiteSpace(runtimeId) ? stateBoot.RuntimeId : runtimeId);
|
||||
}
|
||||
|
||||
public static AetheriaClient CurrentClientForStateFile(string stateFilePath)
|
||||
{
|
||||
return _runtimeClient != null &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue