public DataFilter(IOptions <DataFilterOptions> options) { this.options = options.Value; filter = new AsyncLocal <DataFilterState>(); }
public DataFilterHandler(IServiceProvider serviceProvider, IOptions <DataFilterOptions> options) { this.serviceProvider = serviceProvider; this.options = options.Value; filters = new ConcurrentDictionary <Type, object>(); }