|
|
@@ -197,8 +197,13 @@ namespace BPASmartClient.Helper |
|
|
|
/// <returns></returns> |
|
|
|
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; |
|
|
|
} |
|
|
|
|
|
|
|
public bool IsContainsKey(string key) |
|
|
|
{ |
|
|
|
return Threads.ContainsKey(guid + key); |
|
|
|
} |
|
|
|
} |
|
|
|
} |