Esempio n. 1
0
        protected override BWebServiceResponse OnRequestPP(HttpListenerContext _Context, Action <string> _ErrorMessageAction = null)
        {
            if (MaintenanceChecker.Get().IsMaintenanceModeOn())
            {
                return(BWebResponse.ServiceUnavailable("The system is in maintenance."));
            }

            var Response = BWebServiceExtraUtilities.RequestRedirection(
                _Context,
                ApiGatewayServiceEndpoint + "/" + _Context.Request.RawUrl.TrimStart('/'),
                _ErrorMessageAction,
                false,
                false);

            return(MaintenanceChecker.Get().IsMaintenanceModeOn() ? BWebResponse.ServiceUnavailable("The system is in maintenance.") : Response);
        }