public Task <bool> SaveFileAsync(string path, Stream stream, CancellationToken cancellationToken = new CancellationToken())
        {
            if (String.IsNullOrWhiteSpace(path))
            {
                throw new ArgumentNullException(nameof(path));
            }

            return(UnscopedStorage.SaveFileAsync(String.Concat(_pathPrefix, path), stream, cancellationToken));
        }
Beispiel #2
0
        public Task <bool> SaveFileAsync(string path, Stream stream, CancellationToken cancellationToken = default)
        {
            if (String.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException(nameof(path));
            }

            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }

            return(UnscopedStorage.SaveFileAsync(String.Concat(_pathPrefix, path), stream, cancellationToken));
        }
Beispiel #3
0
 public Task <bool> SaveFileAsync(string path, Stream stream, CancellationToken cancellationToken = new CancellationToken())
 {
     return(UnscopedStorage.SaveFileAsync(String.Concat(_pathPrefix, path), stream, cancellationToken));
 }