Catel.Test.Caching.CacheStorageFacts.TheThreadSafeFunctionality.RunMultipleThreadsUsingAddAndGet C# (CSharp) Method

RunMultipleThreadsUsingAddAndGet() private method

private RunMultipleThreadsUsingAddAndGet ( ) : void
return void
            public void RunMultipleThreadsUsingAddAndGet()
            {
                RunMultipleThreadsWithRandomAccessCalls((cache, key) =>
                {
                    var threadId = ThreadHelper.GetCurrentThreadId();

                    cache.Add(key, threadId);

                    //Log.Info("Key '{0}' is now controlled by thread '{1}'", key, threadId);

                    return cache.Get(key);
                });
            }