Class BridgeCommandService
Handles jdai-daemon bridge command actions and runtime cleanup orchestration.
public class BridgeCommandService
- Inheritance
-
BridgeCommandService
- Inherited Members
Constructors
BridgeCommandService(string, Func<IServiceManager>)
public BridgeCommandService(string appSettingsPath, Func<IServiceManager> serviceManagerFactory)
Parameters
appSettingsPathstringserviceManagerFactoryFunc<IServiceManager>
Methods
DisableBridgeRuntimeAsync(string)
protected virtual Task DisableBridgeRuntimeAsync(string appSettingsPath)
Parameters
appSettingsPathstring
Returns
DisableBridgeRuntimeDirectAsync(IConfiguration)
protected virtual Task DisableBridgeRuntimeDirectAsync(IConfiguration config)
Parameters
configIConfiguration
Returns
ExecuteAsync(string?)
public Task<int> ExecuteAsync(string? action)
Parameters
actionstring
Returns
ReadState(string)
protected virtual OpenClawBridgeState ReadState(string appSettingsPath)
Parameters
appSettingsPathstring
Returns
RestartInstalledServiceAsync()
protected virtual Task RestartInstalledServiceAsync()
Returns
SetEnabled(string, bool)
protected virtual OpenClawBridgeState SetEnabled(string appSettingsPath, bool enabled)
Parameters
Returns
SetOpenClawGatewayTasksEnabledAsync(bool)
protected virtual Task SetOpenClawGatewayTasksEnabledAsync(bool enabled)
Parameters
enabledbool
Returns
SetPassthrough(string)
protected virtual OpenClawBridgeState SetPassthrough(string appSettingsPath)
Parameters
appSettingsPathstring
Returns
StopOpenClawGatewayTaskAsync()
protected virtual Task StopOpenClawGatewayTaskAsync()
Returns
WriteStatus(OpenClawBridgeState, string)
protected virtual void WriteStatus(OpenClawBridgeState state, string appSettingsPath)
Parameters
stateOpenClawBridgeStateappSettingsPathstring