The extension method ExecuteAndCommitAsync is not keeping the current culture and UI culture in ASP.NET 4.5+ applications, making it hard to use resource files properly.
Example:
public async Task<IHttpActionResult> Post(Order entity, CancellationToken ct){
var resourceText01 = Resources.SomeResourceText;
return await _uow.ExecuteAndCommitAsync(async () => {
var resourceText02 = Resources.SomeResourceText;
if(resourceText01 != resourceText02)
throw new Exception(
string.Format("The resource text does not match: {0} != {1}", resourceText01, resourceText02));
await Task.Delay(3000, ct);
return Created(entity);
});
}