Esempio n. 1
0
        public void CanLoadOutputApp()
        {
            var appBinaries = "Apps/FirstOfTypeBinaries";

            Assert.True(Directory.Exists(appBinaries));

            var appContainer = new AppContainer(Logger.None, appBinaries,
                                                new App(Some.String(), Some.String(), new Dictionary <string, string>(), "./storage"),
                                                new Host(Some.UriString(), null));

            appContainer.Dispose();
        }
Esempio n. 2
0
        /// <summary>
        ///     Performs application-defined tasks associated with freeing,
        ///     releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            var cd = AppDomain.CurrentDomain;

            cd.AssemblyLoad -= CurrentDomainOnAssemblyLoad;
            //cd.TypeResolve += CdOnTypeResolve;

            cd.UnhandledException -= OnAppDomainUnhandledException;
            cd.ResourceResolve    -= CdOnResourceResolve;

            cd.FirstChanceException -= CurrentDomainOnFirstChanceException;
            _container?.Dispose();
            AppContainer?.Dispose();
        }
Esempio n. 3
0
        public void CanLoadInputApp()
        {
            var appBinaries = "Apps/HealthCheckBinaries";

            Assert.True(Directory.Exists(appBinaries));

            var settings = new Dictionary <string, string> {
                ["TargetUrl"] = Some.UriString()
            };

            var appContainer = new AppContainer(Logger.None, appBinaries,
                                                new App(Some.String(), Some.String(), settings, "./storage"),
                                                new Host(Some.UriString(), null));

            appContainer.Dispose();
        }