pulizia oggetti inutilizzati
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="M6Started.aspx.cs" Inherits="MP_SITE.M6Started" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<asp:Label runat="server" ID="lblOut" Text="ok" />
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,52 +0,0 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace MP_SITE
|
||||
{
|
||||
public partial class M6Started : BasePage
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// legge i get x registrare che una amcchian è stata riavviata
|
||||
string idxMacchina = "";
|
||||
string IPv4 = "";
|
||||
string agent = "";
|
||||
string macAddr = "";
|
||||
try
|
||||
{
|
||||
idxMacchina = Request.QueryString["idxMacchina"];
|
||||
macAddr = Request.QueryString["mac"]; // opzionale, mac address!!!
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
// recupero IP del client remoto
|
||||
IPv4 = Request.UserHostName;
|
||||
agent = Request.UserAgent;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
// ora salvo che la macchina è stata (ri)avviata...
|
||||
MapoDb.MapoDb MapoDbObj = new MapoDb.MapoDb();
|
||||
MapoDbObj.registraStartup(idxMacchina, IPv4, agent, macAddr);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
string errore = $"Errore: {Environment.NewLine}{exc}";
|
||||
logger.lg.scriviLog(errore, tipoLog.EXCEPTION);
|
||||
lblOut.Text = errore;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-34
@@ -1,34 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_SITE
|
||||
{
|
||||
|
||||
|
||||
public partial class M6Started {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// lblOut control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOut;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user