Пример #1
0
 protected ConcurrentCustomPersister <T> GetConcurrentCustomPersister <T>(ConcurrentCustomPersister <T> .InsertionMethod insertionMethod, IPluginRequest request = null) where T : new()
 {
     if (request == null)
     {
         return(new ConcurrentCustomPersister <T>(OutputDatabaseConnectionFactory, insertionMethod, recordsPersisted: RecordsPersisted));
     }
     else
     {
         int poolSize = GlobalPluginArgumentHelper.GetPersisterPoolSize(request);
         return(new ConcurrentCustomPersister <T>(OutputDatabaseConnectionFactory, insertionMethod, poolSize, RecordsPersisted));
     }
 }
Пример #2
0
 protected ConcurrentCustomPersister <T> GetConcurrentCustomPersister <T>(IPluginRequest request, ConcurrentCustomPersister <T> .InsertionMethod insertionMethod) where T : new()
 {
     return(new ConcurrentCustomPersister <T>(request, OutputDatabaseConnectionFactory, insertionMethod, recordsPersisted: RecordsPersisted));
 }
Пример #3
0
 protected IPersister <T> GetConcurrentCustomPersister <T>(IPluginRequest request, ConcurrentCustomPersister <T> .InsertionMethod insertionMethod) where T : new()
 {
     return(GetConcurrentCustomPersisterFactory <T>(request, insertionMethod).BuildPersister());
 }