Beispiel #1
0
        private async Task <bool> StopInstance(ISentinel instance)
        {
            try
            {
                var stopped = await instance.Stop();

                if (stopped)
                {
                    instance = null;
                    GC.Collect();
                }
                return(stopped);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Beispiel #2
0
 public PackageInstance(PackageToRun packagePackageToRun, ISentinel instance)
 {
     PackageToRun = packagePackageToRun;
     Instance     = instance;
 }
 public  ExpTail (Parser yyp):base(((PCParser
)yyp)){ m_sentinel = new  DefaultSentinel ();
}