Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 1, 2023 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/cd8b96b4316add8316583088fa9775d1 to your computer and use it in GitHub Desktop.
Save bjoerntx/cd8b96b4316add8316583088fa9775d1 to your computer and use it in GitHub Desktop.
public void Create(string requestUrl) {
this.Id = Guid.NewGuid().ToString();
this.RetrieveDocumentUrl = requestUrl.Replace("/1", "/" + this.Id);
using (var db = new LiteDatabase(@"Filename=App_Data/processingqueue.db; Connection=shared")) {
var col = db.GetCollection<ProcessingRequest>("queue");
col.Insert(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment