2024-05-28 07:01:23 +03:00
|
|
|
|
using Mirea.Api.Endpoint.Common.Interfaces;
|
|
|
|
|
|
|
|
|
|
namespace Mirea.Api.Endpoint.Common.Services;
|
|
|
|
|
|
|
|
|
|
public class MaintenanceModeService : IMaintenanceModeService
|
|
|
|
|
{
|
2024-05-28 07:01:58 +03:00
|
|
|
|
public bool IsMaintenanceMode { get; private set; }
|
2024-05-28 07:01:23 +03:00
|
|
|
|
|
|
|
|
|
public void EnableMaintenanceMode() =>
|
|
|
|
|
IsMaintenanceMode = true;
|
|
|
|
|
|
|
|
|
|
public void DisableMaintenanceMode() =>
|
|
|
|
|
IsMaintenanceMode = false;
|
|
|
|
|
}
|