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)); } }
protected ConcurrentCustomPersister <T> GetConcurrentCustomPersister <T>(IPluginRequest request, ConcurrentCustomPersister <T> .InsertionMethod insertionMethod) where T : new() { return(new ConcurrentCustomPersister <T>(request, OutputDatabaseConnectionFactory, insertionMethod, recordsPersisted: RecordsPersisted)); }
protected IPersister <T> GetConcurrentCustomPersister <T>(IPluginRequest request, ConcurrentCustomPersister <T> .InsertionMethod insertionMethod) where T : new() { return(GetConcurrentCustomPersisterFactory <T>(request, insertionMethod).BuildPersister()); }