Class NPCEngineManager
Manager class that handles services and server lifetime and status.
Inheritance
NPCEngineManager
Assembly: cs.temp.dll.dll
Syntax
public class NPCEngineManager : Singleton<NPCEngineManager>
Properties
InferenceEngineProcessId
Declaration
protected int InferenceEngineProcessId { get; set; }
Property Value
InferenceEngineRunning
Declaration
public bool InferenceEngineRunning { get; }
Property Value
Services
Declaration
public List<ServiceMetadata> Services { get; }
Property Value
Type |
Description |
List<ServiceMetadata> |
|
ServicesById
Declaration
public Dictionary<string, ServiceMetadata> ServicesById { get; }
Property Value
ServiceStatuses
Declaration
public List<ServiceStatus> ServiceStatuses { get; }
Property Value
Type |
Description |
List<ServiceStatus> |
|
ServiceStatusesById
Declaration
public Dictionary<string, ServiceStatus> ServiceStatusesById { get; }
Property Value
Methods
DownloadModel(String)
Declaration
public void DownloadModel(string id)
Parameters
Type |
Name |
Description |
String |
id |
|
GetAPI<T>()
Get or construct API for the given type.
Declaration
public T GetAPI<T>()
where T : RPCBase
Returns
Type Parameters
Name |
Description |
T |
API type
|
GetAPI<T>(String)
Get or construct API for the given type and service ID.
Declaration
public T GetAPI<T>(string id)
where T : RPCBase
Parameters
Type |
Name |
Description |
String |
id |
Service ID or otherwise resolvable name
|
Returns
Type Parameters
Name |
Description |
T |
API Type
|
StartAndMonitorServerLife()
Declaration
public IEnumerator StartAndMonitorServerLife()
Returns
StartInferenceEngine()
Starts the inference engine server and managing coroutines.
Declaration
public void StartInferenceEngine()
StopInferenceEngine()
Stop the inference engine server, services and dispose resources.
Declaration
public void StopInferenceEngine()
UpdateServices()
Coroutine that updates service list.
Declaration
public IEnumerator UpdateServices()
Returns
UpdateServiceStatuses()
Coroutine that updates service statuses.
Declaration
public IEnumerator UpdateServiceStatuses()
Returns