protected override Task<IEnumerable<SQLSubscription>> SelectSubscriptions() { CheckDisposed(); var op = new SQLiteOperation<IEnumerable<SQLSubscription>>(() => base.SelectSubscriptions()); _operationQueue.Post(op); return op.Task; }
protected override Task<SQLSubscription> InsertOrUpdateSubscription(TopicName topicName, Uri subscriber, DateTime expires) { CheckDisposed(); var op = new SQLiteOperation<SQLSubscription>( () => base.InsertOrUpdateSubscription(topicName, subscriber, expires)); _operationQueue.Post(op); return op.Task; }
protected override Task UpdateQueuedMessage(SQLQueuedMessage queuedMessage, DateTime? acknowledged, DateTime? abandoned, int attempts) { CheckDisposed(); var op = new SQLiteOperation(() => base.UpdateQueuedMessage(queuedMessage, acknowledged, abandoned, attempts)); _operationQueue.Post(op); return op.Task; }
protected override Task<SQLQueuedMessage> InsertQueuedMessage(Message message, IPrincipal senderPrincipal) { CheckDisposed(); var op = new SQLiteOperation<SQLQueuedMessage>(() => base.InsertQueuedMessage(message, senderPrincipal)); _operationQueue.Post(op); return op.Task; }
protected override Task DeleteSubscription(TopicName topicName, Uri subscriber) { CheckDisposed(); var op = new SQLiteOperation(() => base.DeleteSubscription(topicName, subscriber)); _operationQueue.Post(op); return op.Task; }