-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHost.vb
More file actions
25 lines (20 loc) · 789 Bytes
/
Host.vb
File metadata and controls
25 lines (20 loc) · 789 Bytes
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
<Serializable()> Public Class Host
Inherits MarshalByRefObject
Implements IRegisteredObject
Public Sub ProcessRequest(ByVal state As ReadHeadersResult, ByVal objStream As Stream, ByVal VirtualPath As String, ByVal PhysicalPath As String)
Dim r As New Request(state, objStream, VirtualPath, PhysicalPath)
HttpRuntime.ProcessRequest(r)
End Sub
Public Sub [Stop](ByVal immediate As Boolean) Implements System.Web.Hosting.IRegisteredObject.Stop
HostingEnvironment.UnregisterObject(Me)
End Sub
Public Overloads Overrides Function InitializeLifetimeService() As Object
Return Nothing
End Function
Public Sub New()
HostingEnvironment.RegisterObject(Me)
End Sub
Public Sub Shutdown()
HostingEnvironment.InitiateShutdown()
End Sub
End Class