Ejemplo n.º 1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            HeContext heContext = Global.App.OsContext;
            // Session[\"Hits\"] = 1 + ( int) Session[\"Hits\"];
            bool processedOk = false;

            try {
                heContext.Session.TenantId = Convert.ToInt32(Request.QueryString["tenantid"]);
                if (heContext.MOMsg != null)
                {
                    heContext.MOMsg = SmsUtils.BuildMsgFromRequest(Request);
                }
                AppUtils.DoOnMobileOriginatedMessage(heContext, ref heContext.MOMsg);
                Global.App.OsContext.Session.MSISDN = heContext.MOMsg.MSISDN;
                SmsLog.Write(DateTime.Now, heContext.AppInfo.eSpaceId, heContext.AppInfo.Tenant.Id, heContext.AppInfo.OsContext.Session.UserId, heContext.AppInfo.eSpaceName, "", 0, "", heContext.MOMsg);
                handleRequest(heContext);
                processedOk = true;
            } finally {
                DatabaseAccess.FreeupResources(processedOk);
            }
            Response.End();
        }