Made container verison volatile

This commit is contained in:
David Fowler 2015-05-29 14:14:36 -07:00
parent d9839bcc43
commit ed339a35d2
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace Microsoft.AspNet.FeatureModel
private readonly IFeatureCollection _defaults;
private readonly IDictionary<Type, object> _featureByFeatureType = new Dictionary<Type, object>();
private readonly object _containerSync = new object();
private int _containerRevision;
private volatile int _containerRevision;
public FeatureCollection()
{