diff options
Diffstat (limited to 'product/database/transactions/PerThreadScopedStorage.cs')
| -rw-r--r-- | product/database/transactions/PerThreadScopedStorage.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/product/database/transactions/PerThreadScopedStorage.cs b/product/database/transactions/PerThreadScopedStorage.cs new file mode 100644 index 0000000..9d32462 --- /dev/null +++ b/product/database/transactions/PerThreadScopedStorage.cs @@ -0,0 +1,19 @@ +using System.Collections; + +namespace momoney.database.transactions +{ + public class PerThreadScopedStorage : IScopedStorage + { + readonly IThread current_thread; + + public PerThreadScopedStorage(IThread current_thread) + { + this.current_thread = current_thread; + } + + public IDictionary provide_storage() + { + return current_thread.provide_slot_for<Hashtable>(); + } + } +}
\ No newline at end of file |
