We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using https://github.com/charlesdevandiere/xmldoc2md
Sample with Proffer.Storage: docs.zip
Namespace: Proffer.Storage
A store allows to save, list or read files on a container in its configured IStorageProvider.
public interface IStore
Gets the name of the store.
public abstract string Name { get; }
String
Initializes the store by creating a container in its IStorageProvider.
Task InitAsync(CancellationToken cancellationToken)
cancellationToken CancellationToken
cancellationToken
Task A task that represents the asynchronous operation.
Lists the files under .
ValueTask<IFileReference[]> ListAsync(string path, bool recursive, bool withMetadata)
path String The path.
path
recursive Boolean If set to true, recurse the listing across folders.
recursive
withMetadata Boolean If set to true, fetch metadata for each file.
withMetadata
ValueTask<IFileReference[]> The list under .
Lists the files under matching the .
ValueTask<IFileReference[]> ListAsync(string path, string searchPattern, bool recursive, bool withMetadata)
searchPattern String The search pattern.
searchPattern
ValueTask<IFileReference[]> The list under matching the .
Gets the file reference from path.
ValueTask<IFileReference> GetAsync(IPrivateFileReference file, bool withMetadata)
file IPrivateFileReference The reference holding the file path.
file
withMetadata Boolean If set to true, fetch metadata for the file.
ValueTask<IFileReference> The at path.
Gets the file reference from URI.
ValueTask<IFileReference> GetAsync(Uri uri, bool withMetadata)
uri Uri The file uniform resource identifier (URI).
uri
InvalidOperationException
Deletes the file.
Task DeleteAsync(IPrivateFileReference file)
Reads the file content.
ValueTask<Stream> ReadAsync(IPrivateFileReference file)
ValueTask<Stream> A containing the file content.
ValueTask<Byte[]> ReadAllBytesAsync(IPrivateFileReference file)
ValueTask<Byte[]> A containing the file content.
ValueTask<string> ReadAllTextAsync(IPrivateFileReference file)
ValueTask<String> A containing the file content.
Saves the file.
ValueTask<IFileReference> SaveAsync(Byte[] data, IPrivateFileReference file, string contentType, OverwritePolicy overwritePolicy, IDictionary<string, string> metadata)
data Byte[] The file content.
data
contentType String The content-type of the file.
contentType
overwritePolicy OverwritePolicy The overwrite policy.
overwritePolicy
metadata IDictionary<String, String> The metadata.
metadata
ValueTask<IFileReference> The saved .
FileAlreadyExistsException
ValueTask<IFileReference> SaveAsync(Stream data, IPrivateFileReference file, string contentType, OverwritePolicy overwritePolicy, IDictionary<string, string> metadata)
data Stream The file content.
Gets a shared access signature.
ValueTask<string> GetSharedAccessSignatureAsync(ISharedAccessPolicy policy)
policy ISharedAccessPolicy The policy.
policy
ValueTask<String> A shared access signature to read or list the store files.
NotSupportedException
< Back
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using https://github.com/charlesdevandiere/xmldoc2md
Sample with Proffer.Storage: docs.zip
IStore
Namespace: Proffer.Storage
A store allows to save, list or read files on a container in its configured IStorageProvider.
Properties
Name
Gets the name of the store.
Property Value
String
Methods
InitAsync(CancellationToken)
Initializes the store by creating a container in its IStorageProvider.
Parameters
cancellationToken
CancellationTokenReturns
Task
A task that represents the asynchronous operation.
ListAsync(String, Boolean, Boolean)
Lists the files under .
Parameters
path
StringThe path.
recursive
BooleanIf set to true, recurse the listing across folders.
withMetadata
BooleanIf set to true, fetch metadata for each file.
Returns
ValueTask<IFileReference[]>
The list under .
ListAsync(String, String, Boolean, Boolean)
Lists the files under matching the .
Parameters
path
StringThe path.
searchPattern
StringThe search pattern.
recursive
BooleanIf set to true, recurse the listing across folders.
withMetadata
BooleanIf set to true, fetch metadata for each file.
Returns
ValueTask<IFileReference[]>
The list under matching the .
GetAsync(IPrivateFileReference, Boolean)
Gets the file reference from path.
Parameters
file
IPrivateFileReferenceThe reference holding the file path.
withMetadata
BooleanIf set to true, fetch metadata for the file.
Returns
ValueTask<IFileReference>
The at path.
GetAsync(Uri, Boolean)
Gets the file reference from URI.
Parameters
uri
UriThe file uniform resource identifier (URI).
withMetadata
BooleanIf set to true, fetch metadata for the file.
Returns
ValueTask<IFileReference>
The at path.
Exceptions
InvalidOperationException
DeleteAsync(IPrivateFileReference)
Deletes the file.
Parameters
file
IPrivateFileReferenceThe reference holding the file path.
Returns
Task
A task that represents the asynchronous operation.
ReadAsync(IPrivateFileReference)
Reads the file content.
Parameters
file
IPrivateFileReferenceThe reference holding the file path.
Returns
ValueTask<Stream>
A containing the file content.
ReadAllBytesAsync(IPrivateFileReference)
Reads the file content.
Parameters
file
IPrivateFileReferenceThe reference holding the file path.
Returns
ValueTask<Byte[]>
A containing the file content.
ReadAllTextAsync(IPrivateFileReference)
Reads the file content.
Parameters
file
IPrivateFileReferenceThe reference holding the file path.
Returns
ValueTask<String>
A containing the file content.
SaveAsync(Byte[], IPrivateFileReference, String, OverwritePolicy, IDictionary<String, String>)
Saves the file.
Parameters
data
Byte[]The file content.
file
IPrivateFileReferenceThe reference holding the file path.
contentType
StringThe content-type of the file.
overwritePolicy
OverwritePolicyThe overwrite policy.
metadata
IDictionary<String, String>The metadata.
Returns
ValueTask<IFileReference>
The saved .
Exceptions
FileAlreadyExistsException
SaveAsync(Stream, IPrivateFileReference, String, OverwritePolicy, IDictionary<String, String>)
Saves the file.
Parameters
data
StreamThe file content.
file
IPrivateFileReferenceThe reference holding the file path.
contentType
StringThe content-type of the file.
overwritePolicy
OverwritePolicyThe overwrite policy.
metadata
IDictionary<String, String>The metadata.
Returns
ValueTask<IFileReference>
The saved .
Exceptions
FileAlreadyExistsException
GetSharedAccessSignatureAsync(ISharedAccessPolicy)
Gets a shared access signature.
Parameters
policy
ISharedAccessPolicyThe policy.
Returns
ValueTask<String>
A shared access signature to read or list the store files.
Exceptions
NotSupportedException
< Back
The text was updated successfully, but these errors were encountered: