Class PlayitStatus
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
What the tunnel panel says about Playit, worked out from the two things that can carry the tunnel: the app's embedded agent, and the system's own Playit service.
public static class PlayitStatus
- Inheritance
-
PlayitStatus
- Inherited Members
Remarks
The embedded agent wins whenever the user has connected their account — that is the model this app uses, and the system service is then irrelevant and must not say "not installed". Pure functions of their inputs, so the mapping can be checked without a running agent.
Methods
Effective(bool, AgentRunState, PlayitState)
The tunnel data-plane state as the UI should see it: the embedded agent when the account is connected, otherwise the legacy system service.
public static PlayitState Effective(bool agentHasSecret, AgentRunState agent, PlayitState system)
Parameters
agentHasSecretboolagentAgentRunStatesystemPlayitState
Returns
Text(bool, AgentRunState, PlayitState, bool)
The line under the tunnel row, saying what is actually forwarding traffic.
public static string Text(bool agentHasSecret, AgentRunState agent, PlayitState state, bool systemInstalled)
Parameters
agentHasSecretboolWhether the embedded agent is the one in play.
agentAgentRunStateThe embedded agent's state.
statePlayitStateThe effective state, from Effective(bool, AgentRunState, PlayitState).
systemInstalledboolWhether the system service is installed.