•[WebMethod (Description="Numero total de
acessos ao Método")]
•
public int TotalRequisicoes()
•
{
•
//Se o Método ainda não foi acessado.
• //Inicializamos com 1.
•
if (Application["appTotal"] == null)
•
{
•
Application["appTotal"] = 1;
•
}
•
else
•
{
•
//Se já houve acesso incrementa + 1.
•
Application["appTotal"] = ((int)
Application["appTotal"]) + 1;
•
}
•
return (int)Application["appTotal"];
• }