/// <summary> /// Initializes a new instance of the <see cref="ContextualStorageHelper"/> class. /// </summary> /// <param name="storage"> /// The contextual storage to use. /// </param> public ContextualStorageHelper(IContextualStorage storage) { _storage = storage; Initialize(); }
/// <summary> /// Sets contextual storage strategy for ambient database context. /// </summary> /// <param name="storage"> /// The storage to use. /// </param> /// <exception cref="ArgumentNullException"> /// when <paramref name="storage"/> is <c>null</c>. /// </exception> public static void SetStorage(IContextualStorage storage) { _storage = storage; }