DistributedLock icon indicating copy to clipboard operation
DistributedLock copied to clipboard

Add custom data to AzureBlobLeaseDistributedLock

Open rLindorfer opened this issue 2 years ago • 10 comments

Problem

Currently, it is not possible to add additional meta-information to a distributed lock:

  • identity who acquired the lock
  • time stamp when lock got acquired
  • etc.

Proposed solution

I would be useful if it was possible to add additional data to the created blob, e.g. a JSON uploaded as blob content.

  1. add new constructor parameter Stream content to store custom data
  2. instead of simply uploading an empty stream in the CreateIfNotExistsAsync method, use the given content

rLindorfer avatar Jan 23 '23 07:01 rLindorfer