forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationScopeStorageDictionary.cs
More file actions
27 lines (23 loc) · 982 Bytes
/
Copy pathApplicationScopeStorageDictionary.cs
File metadata and controls
27 lines (23 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace System.Web.WebPages.Scope
{
/// <summary>
/// The application level storage context that uses a static dictionary as a backing store.
/// </summary>
internal class ApplicationScopeStorageDictionary : ScopeStorageDictionary
{
private static readonly IDictionary<object, object> _innerDictionary =
new ConcurrentDictionary<object, object>(ScopeStorageComparer.Instance);
public ApplicationScopeStorageDictionary()
: this(new WebConfigScopeDictionary())
{
}
public ApplicationScopeStorageDictionary(WebConfigScopeDictionary webConfigState)
: base(baseScope: webConfigState, backingStore: _innerDictionary)
{
}
}
}