public async Task <DumpArtifact> GetOrAddAsync(DumpArtifact dumpArtifact, CancellationToken cancelToken) { return(await this.GetOrAddAsync(cancelToken, this.DumpArtifacts, dumpArtifact, dumpArtifact.DumpId, dumpArtifact.LocalPath)); }
public async Task <bool> TryAddAsync(DumpArtifact dumpArtifact, CancellationToken cancelToken) { return(await this.GetOrAddAsync(dumpArtifact, cancelToken) == dumpArtifact); }