Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Web.HttpApplication"/> class.
        /// </summary>
        public DexterApplication()
        {
            this.logger = LogManager.GetCurrentClassLogger();

            DexterContainer.StartUp();
            this.container      = DexterContainer.Resolve <IDexterContainer>();
            this.dexterCall     = DexterContainer.Resolve <IDexterCall>();
            this.routingService = DexterContainer.Resolve <IRoutingService>();
            this.taskExecutor   = DexterContainer.Resolve <ITaskExecutor>();
            this.pluginService  = DexterContainer.Resolve <IPluginService>();
            this.pluginService.LoadAllEnabledPlugins();

            base.BeginRequest += (o, args) => this.BeginRequest();
            base.EndRequest   += (o, args) => this.EndRequest();
            this.Init();
        }