Class RedbSaveInterceptorRegistry

Assembly: redb.Core.dll

The default : an immutable array replaced atomically on every change,
so a reader takes a snapshot with one read and never locks.

public sealed class RedbSaveInterceptorRegistry : IRedbSaveInterceptorRegistry

Inheritance

Object→RedbSaveInterceptorRegistry

Implements

Properties

Current

The interceptors subscribed right now, in the order they were added. An immutable snapshot.

public IReadOnlyList<IRedbSaveInterceptor> Current { get; }

Methods

Add(IRedbSaveInterceptor)

Subscribes interceptor. Dispose the result to remove it; disposing twice, or from another

public IDisposable Add(IRedbSaveInterceptor interceptor)