|
|
@ -49,6 +49,8 @@ namespace Microsoft.AspNetCore.RequestLocalization |
|
|
if (_requestLocalizationOptions == null) |
|
|
if (_requestLocalizationOptions == null) |
|
|
{ |
|
|
{ |
|
|
using (await _syncSemaphore.LockAsync()) |
|
|
using (await _syncSemaphore.LockAsync()) |
|
|
|
|
|
{ |
|
|
|
|
|
if (_requestLocalizationOptions == null) |
|
|
{ |
|
|
{ |
|
|
using (var serviceScope = _serviceProviderFactory.CreateScope()) |
|
|
using (var serviceScope = _serviceProviderFactory.CreateScope()) |
|
|
{ |
|
|
{ |
|
|
@ -82,6 +84,7 @@ namespace Microsoft.AspNetCore.RequestLocalization |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return _requestLocalizationOptions; |
|
|
return _requestLocalizationOptions; |
|
|
} |
|
|
} |
|
|
|