Skip to content

Commit

Permalink
Fix obsolete messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Jan 11, 2024
1 parent 016223f commit 9b89ba9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Foundatio/Storage/FolderFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public FolderFileStorage(Builder<FolderFileStorageOptionsBuilder, FolderFileStor
public string Folder { get; set; }
ISerializer IHaveSerializer.Serializer => _serializer;

[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(FileAccess)} instead to define read or write behaviour of stream")]
[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(StreamMode)} instead to define read or write behaviour of stream")]
public Task<Stream> GetFileStreamAsync(string path, CancellationToken cancellationToken = default)
=> GetFileStreamAsync(path, StreamMode.Read, cancellationToken);

Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio/Storage/IFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Foundatio.Storage;

public interface IFileStorage : IHaveSerializer, IDisposable
{
[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(FileAccess)} instead to define read or write behaviour of stream")]
[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(StreamMode)} instead to define read or write behaviour of stream")]
Task<Stream> GetFileStreamAsync(string path, CancellationToken cancellationToken = default);
/// <summary>
/// Gets a file stream in the specified mode
Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio/Storage/InMemoryFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public InMemoryFileStorage(Builder<InMemoryFileStorageOptionsBuilder, InMemoryFi
public long MaxFiles { get; set; }
ISerializer IHaveSerializer.Serializer => _serializer;

[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(FileAccess)} instead to define read or write behaviour of stream")]
[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(StreamMode)} instead to define read or write behaviour of stream")]
public Task<Stream> GetFileStreamAsync(string path, CancellationToken cancellationToken = default) =>
GetFileStreamAsync(path, StreamMode.Read, cancellationToken);

Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio/Storage/ScopedFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ScopedFileStorage(IFileStorage storage, string scope)
public string Scope { get; private set; }
ISerializer IHaveSerializer.Serializer => UnscopedStorage.Serializer;

[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(FileAccess)} instead to define read or write behaviour of stream")]
[Obsolete($"Use {nameof(GetFileStreamAsync)} with {nameof(StreamMode)} instead to define read or write behaviour of stream")]
public Task<Stream> GetFileStreamAsync(string path, CancellationToken cancellationToken = default)
=> GetFileStreamAsync(path, StreamMode.Read, cancellationToken);

Expand Down

0 comments on commit 9b89ba9

Please sign in to comment.