Simply provides a remoting gateway to execute code within the ASP.NET-hosting appdomain
Inheritance: System.MarshalByRefObject, IDisposable
Exemplo n.º 1
0
        public AppHost(string appPhysicalDirectory, string virtualDirectory)
        {
            appDomainProxy = (AppDomainProxy)ApplicationHost.CreateApplicationHost(typeof(AppDomainProxy), virtualDirectory, appPhysicalDirectory);

              appDomainProxy.RunCodeInAppDomain(() => {
            InitializeApplication();
            var filters = System.Web.Mvc.GlobalFilters.Filters;
            filters.Add(new InterceptionFilter(), int.MaxValue);
            LastRequestData.Reset();
              });
        }
Exemplo n.º 2
0
        public AppHost(string appPhysicalDirectory, string virtualDirectory)
        {
            appDomainProxy = (AppDomainProxy)ApplicationHost.CreateApplicationHost(typeof(AppDomainProxy), virtualDirectory, appPhysicalDirectory);

            appDomainProxy.RunCodeInAppDomain(() => {
                InitializeApplication();
                var filters = System.Web.Mvc.GlobalFilters.Filters;
                filters.Add(new InterceptionFilter(), int.MaxValue);
                LastRequestData.Reset();
            });
        }