blob: a28cd12bceacaf5b03e0fd21e47bf10232a9b0e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
namespace OAuthConsumer {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetOpenAuth.Logging;
public partial class Global : HttpApplication {
protected void Application_Start(object sender, EventArgs e) {
//// LogProvider.SetCurrentLogProvider(new ....)
Logging.Logger.Info("Sample starting...");
}
protected void Application_End(object sender, EventArgs e) {
Logging.Logger.Info("Sample shutting down...");
}
protected void Application_Error(object sender, EventArgs e) {
Logging.Logger.ErrorFormat("An unhandled exception was raised. Details follow: {0}", HttpContext.Current.Server.GetLastError());
}
protected void Session_Start(object sender, EventArgs e) {
// Code that runs when a new session is started
}
protected void Session_End(object sender, EventArgs e) {
// Code that runs when a session ends.
// Note: The Session_End event is raised only when the sessionstate mode
// is set to InProc in the Web.config file. If session mode is set to StateServer
// or SQLServer, the event is not raised.
}
}
}
|