コード例 #1
0
        /// <inheritdoc />
        public Task CreateContainerAsync(StorageCreateContainerOptions options, CancellationToken cancellationToken = default)
        {
            ValidateFileName(options.Container);

            var path = GetContainerLocation(options.Container);

            if (!Directory.Exists(path))
            {
                _logger.LogDebug("Creating container {Container}", options.Container);
                Directory.CreateDirectory(path);
            }
            else
            {
                _logger.LogDebug("Attempting to create container {Container}, but it already exists", options.Container);
            }

            return(Task.CompletedTask);
        }
コード例 #2
0
 /// <inheritdoc />
 public Task CreateContainerAsync(StorageCreateContainerOptions options, CancellationToken cancellationToken = default)
 {
     return(Task.CompletedTask);
 }