public static void QuitaOAbortaFaena(Tiket <TipoTrabajo> faenaHaAbortar) { if (feanasHaciendose.ContainsKey(faenaHaAbortar.IdUnico)) { hilosFaenas.Remove(feanasHaciendose[faenaHaAbortar.IdUnico].Value.Key.Name); try { feanasHaciendose[faenaHaAbortar.IdUnico].Value.Key.Abort(); } catch { } feanasHaciendose.Remove(faenaHaAbortar.IdUnico); faenaHaAbortar.DentroPool = false; } else if (faenasEstaticas.Contains(faenaHaAbortar)) { faenasEstaticas.Remove(faenaHaAbortar); faenaHaAbortar.DentroPool = false; } }
public bool Contains(T item) { return(pila.Contains(item)); }