public async Task <ApiResult <GetEosStatusResponse> > Status([FromServices] EosService eos) { string chainId = null; if (_status == LaunchStatus.正在运行) { chainId = await eos.RetriveChainIdAsync(); } return(ApiResult(new GetEosStatusResponse { Status = _status.ToString(), ChainId = chainId, LogStreamId = eos.GetOneBoxProcId() })); }
public async Task <ApiResult <object> > Status([FromServices] OneBoxService eos) { string chainId = null; if (_status == LaunchStatus.Active) { chainId = await eos.RetriveChainIdAsync(); } return(ApiResult <object>(new { Status = _status.ToString(), ChainId = chainId, LogStreamId = eos.GetOneBoxProcId() })); }