private AzureBlobLeaseProvider(AzureBlobLeaseProviderOptions options)
        {
            var account = CloudStorageAccount.Parse(options.DataConnectionString);

            this.blobClient = account.CreateCloudBlobClient();
            this.options    = options;
        }
Example #2
0
 private AzureBlobLeaseProvider(AzureBlobLeaseProviderOptions options)
 {
     this.blobClient = options.ServiceUri != null ? new BlobServiceClient(options.ServiceUri, options.TokenCredential) : new BlobServiceClient(options.DataConnectionString);
     this.options    = options;
 }
Example #3
0
        public static ILeaseProvider Create(IServiceProvider services, string name)
        {
            AzureBlobLeaseProviderOptions options = services.GetOptionsByName <AzureBlobLeaseProviderOptions>(name);

            return(new AzureBlobLeaseProvider(options));
        }
Example #4
0
 private AzureBlobLeaseProvider(AzureBlobLeaseProviderOptions options)
 {
     this.options = options;
 }