BlueCollar.Console.Bootstraps.PullUp C# (CSharp) Метод

PullUp() публичный Метод

Pulls up this instance's app domain, if it is not already loaded.
public PullUp ( ) : BootstrapsPullupResult
Результат BootstrapsPullupResult
        public BootstrapsPullupResult PullUp()
        {
            return this.PullUp(false);
        }

Same methods

Bootstraps::PullUp ( bool forceMachine ) : BootstrapsPullupResult

Usage Example

Пример #1
0
        public void BootstrapsBasicApplicationFileChange()
        {
            string path = ApplicationUtils.CreateValidExampleApplication();
            string filePath = Path.Combine(path, Path.GetFileNameWithoutExtension(Path.GetRandomFileName()) + ".dll");
            ManualResetEvent handle = new ManualResetEvent(false);

            try
            {
                using (Bootstraps bootstraps = new Bootstraps(path, null, 500))
                {
                    bootstraps.ApplicationFilesChanged += (sender, e) =>
                    {
                        Assert.AreEqual(filePath, e.FullPath);
                        handle.Set();
                    };

                    Assert.AreEqual(BootstrapsPullupResultType.Success, bootstraps.PullUp().ResultType);

                    using (File.Create(filePath))
                    {
                    }

                    WaitHandle.WaitAll(new WaitHandle[] { handle });
                }
            }
            finally
            {
                handle.Close();
            }
        }
All Usage Examples Of BlueCollar.Console.Bootstraps::PullUp