Example #1
0
        /// <summary>
        /// Create new instance.
        /// </summary>
        /// <param name="client">Instance of <see cref="CloudBlobClient"/>.</param>
        public FunctionSharedState(StorageAccountProvider storageAccount)
        {
            if (storageAccount == null)
            {
                throw new ArgumentNullException(nameof(storageAccount));
            }

            _client = storageAccount.CreateCloudBlobClient();
        }
Example #2
0
 /// <summary>
 /// Create new instance.
 /// </summary>
 public DownloadMedia(TdmService tdmService, FunctionSharedState sharedState, StorageAccountProvider storageAccount)
 {
     _tdmService     = tdmService ?? throw new ArgumentNullException(nameof(tdmService));
     _functionState  = sharedState ?? throw new ArgumentNullException(nameof(sharedState));
     _storageAccount = storageAccount ?? throw new ArgumentNullException(nameof(storageAccount));
 }