/Raven.Database/Indexing/CurrentTransformationScope.cs
C# | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | 7228e5b37b08c17a026c7d4d467d9916 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, CC-BY-SA-3.0
- using System;
- using System.Collections.Generic;
- using Raven.Database.Impl;
- using Raven.Json.Linq;
-
- namespace Raven.Database.Indexing
- {
- public class CurrentTransformationScope : IDisposable
- {
- [ThreadStatic]
- private static DocumentRetriever current;
-
- public static DocumentRetriever Current
- {
- get { return current; }
- }
-
- public CurrentTransformationScope(DocumentRetriever documentRetriever)
- {
- current = documentRetriever;
- }
-
- public void Dispose()
- {
- current = null;
- }
- }
- }