Sfoglia il codice sorgente

小配料站

master
pry 1 anno fa
parent
commit
d522c1c576
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +6
    -1
      BPASmartClient.Helper/ThreadManage.cs

+ 6
- 1
BPASmartClient.Helper/ThreadManage.cs Vedi File

@@ -197,8 +197,13 @@ namespace BPASmartClient.Helper
/// <returns></returns> /// <returns></returns>
public bool IsCanncel(string key) public bool IsCanncel(string key)
{ {
if(CancellationTokenSources.ContainsKey(guid + key)) return CancellationTokenSources[guid + key].IsCancellationRequested;
if (CancellationTokenSources.ContainsKey(guid + key)) return CancellationTokenSources[guid + key].IsCancellationRequested;
return false; return false;
} }

public bool IsContainsKey(string key)
{
return Threads.ContainsKey(guid + key);
}
} }
} }

Caricamento…
Annulla
Salva