using LCU.Library.Internal.Status.Services; using LCU.Library.Internal.StatusModels.Models; namespace ReserveManagementSystemApi.Services; public class StatusService : IStatusService { private readonly IEnvironmentViewService _environmentViewService; public StatusService(IEnvironmentViewService environmentViewService) { _environmentViewService = environmentViewService; } public EnvironmentView GetEnviromentView() { try { var environmentView = _environmentViewService.BuildEnvironmentView(); Log.Verbose("Status Environment View Heartbeat. EnvironmentView: {@EnvironmentView}", environmentView); return environmentView; } catch (Exception exception) { Log.Error(exception, $"Failure Getting Enviroment View Information."); throw new ServiceException($"Failure Getting Enviroment View Information."); } } }