Closed Domitnator closed 5 years ago
Hi Guys,
The Query class (URF.Core.EF\Query.cs) has a bunch of methods. I noticed that for some of the the CancellationToken is set to default but not for all:
Is that done with a specific reason?
I'm using the FirstOrDefaultAsync method a lot (for including child properties) and it is quite anoying to supply the CancellationToken everytime.
var shipment = await _service .Query() .Include(s => s.RMAs) .FirstOrDefaultAsync(s => s.Id == id, new System.Threading.CancellationToken());
Thanks in advance,
Alfred
@Domitnator could you be so kind to issue a PR setting CancellationToken = default?
Fixed in https://github.com/urfnet/URF.Core/releases/tag/v2.2.0
Hi Guys,
The Query class (URF.Core.EF\Query.cs) has a bunch of methods. I noticed that for some of the the CancellationToken is set to default but not for all:
Is that done with a specific reason?
I'm using the FirstOrDefaultAsync method a lot (for including child properties) and it is quite anoying to supply the CancellationToken everytime.
Thanks in advance,
Alfred