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); } }
public PackageInstance(PackageToRun packagePackageToRun, ISentinel instance) { PackageToRun = packagePackageToRun; Instance = instance; }
public ExpTail (Parser yyp):base(((PCParser )yyp)){ m_sentinel = new DefaultSentinel (); }