private Task RenewEngineAsync() { return(_Pool.DoAsync(() => { RenewEngineCore(); })); }
public Task DoAsync(Action <DBreeze.Transactions.Transaction> act) { AssertNotDisposed(); return(_Pool.DoAsync(() => { AssertNotDisposed(); RetryIfFailed(() => { act(_Tx); }); })); }
void AddToTextSearch(string invoiceId, params string[] terms) { _IndexerThread.DoAsync(() => { using (var tx = _Engine.GetTransaction()) { tx.TextAppend("InvoiceSearch", Encoders.Base58.DecodeData(invoiceId), string.Join(" ", terms.Where(t => !String.IsNullOrWhiteSpace(t)))); tx.Commit(); } }); }
private void QueueWork(Action act) { var unused = _ThreadPool.DoAsync(act); }