Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Web;
|
---|
6 | using System.Threading;
|
---|
7 | using HeuristicLab.Tracing;
|
---|
8 | using System.IO;
|
---|
9 | using HeuristicLab.Hive.Contracts.Interfaces;
|
---|
10 | using HeuristicLab.PluginInfrastructure;
|
---|
11 |
|
---|
12 | namespace HeuristicLab.Hive.Server.Core.IISModules {
|
---|
13 | public class HiveServerModule : IHttpModule {
|
---|
14 | private static object locker = new object();
|
---|
15 | private static ILifecycleManager lifecycleManager;
|
---|
16 |
|
---|
17 | public void Init(HttpApplication context) {
|
---|
18 | lock (locker) {
|
---|
19 | if(lifecycleManager == null) lifecycleManager = ServiceLocator.GetLifecycleManager();
|
---|
20 | lifecycleManager.Start();
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 | public void Dispose() {
|
---|
25 | lock (locker) {
|
---|
26 | lifecycleManager.Stop();
|
---|
27 | }
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.