Make `readonly`

This commit is contained in:
Dean Herbert 2021-11-29 17:38:54 +09:00
parent 673481ebc5
commit f19cfcc82e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class RealmContextFactory : IDisposable, IRealmFactory
/// </summary>
private readonly SemaphoreSlim contextCreationLock = new SemaphoreSlim(1);
private ThreadLocal<bool> currentThreadCanCreateContexts = new ThreadLocal<bool>();
private readonly ThreadLocal<bool> currentThreadCanCreateContexts = new ThreadLocal<bool>();
private static readonly GlobalStatistic<int> refreshes = GlobalStatistics.Get<int>(@"Realm", @"Dirty Refreshes");
private static readonly GlobalStatistic<int> contexts_created = GlobalStatistics.Get<int>(@"Realm", @"Contexts (Created)");