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