Exemplo n.º 1
0
 /// <summary>
 /// Init adds BeginRequest and Error events.
 /// </summary>
 public override void Init()
 {
     ModulesX = new ExtendableModuleCollection(Modules);
     if (!ModulesX.Contains("LogModule"))
     {
         ModulesX.Add(new LogModule(this));
     }
     if (!ModulesX.Contains("HttpsModule"))
     {
         ModulesX.Add(new HttpsModule(this));
     }
     if (!ModulesX.Contains("ClosableModule"))
     {
         ModulesX.Add(new ClosableModule(this));
     }
 }
Exemplo n.º 2
0
 /// <summary>Disposes of any extra modules.</summary>
 public override void Dispose()
 {
     ModulesX.Dispose();
     ModulesX = null;
 }