summaryrefslogtreecommitdiff
path: root/lib/PerThreadScopedStorage.cs
blob: 27c4a0b69a944fe0d66217da8d338b269421b201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Collections;

namespace jive
{
  public class PerThreadScopedStorage : ScopedStorage
  {
    readonly ApplicationThread current_thread;

    public PerThreadScopedStorage(ApplicationThread current_thread)
    {
      this.current_thread = current_thread;
    }

    public IDictionary provide_storage()
    {
      return current_thread.provide_slot_for<Hashtable>();
    }
  }
}