Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }