public SQLiteStorage(IOptions <SQLiteStorageOptions> options, SQLiteConnectionFactory connectionFactory, ILogger <SQLiteStorage> logger) { Options = options.Value; ConnectionFactory = connectionFactory; Logger = logger; if (Options.EnableDefer) { _deferFlushCollection = new AsyncCallbackDeferFlushCollection <IRequestInfo, IRequestDetail>(AddRequestInfoAsync, Options.DeferThreshold, Options.DeferSecond); } }
public SQLiteStorage(IOptions <SQLiteStorageOptions> options, SQLiteConnectionFactory connectionFactory, ILogger <SQLiteStorage> logger) { Options = options.Value; ConnectionFactory = connectionFactory; if (!Options.TablePrefix.IsEmpty()) { Prefix = Options.TablePrefix + "."; } Logger = logger; if (Options.EnableDefer) { _deferFlushCollection = new AsyncCallbackDeferFlushCollection <RequestBag>(AddRequestInfoAsync, Options.DeferThreshold, Options.DeferSecond); } }