Skip to content
New issue

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

Generate markdown from C# XML documentation #46

Open
asiffermann opened this issue May 2, 2021 · 0 comments
Open

Generate markdown from C# XML documentation #46

asiffermann opened this issue May 2, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@asiffermann
Copy link
Owner

asiffermann commented May 2, 2021

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.

public interface IStore

Properties

Name

Gets the name of the store.

public abstract string Name { get; }

Property Value

String

Methods

InitAsync(CancellationToken)

Initializes the store by creating a container in its IStorageProvider.

Task InitAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

A task that represents the asynchronous operation.

ListAsync(String, Boolean, Boolean)

Lists the files under .

ValueTask<IFileReference[]> ListAsync(string path, bool recursive, bool withMetadata)

Parameters

path String

The path.

recursive Boolean

If set to true, recurse the listing across folders.

withMetadata Boolean

If 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 .

ValueTask<IFileReference[]> ListAsync(string path, string searchPattern, bool recursive, bool withMetadata)

Parameters

path String

The path.

searchPattern String

The search pattern.

recursive Boolean

If set to true, recurse the listing across folders.

withMetadata Boolean

If 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.

ValueTask<IFileReference> GetAsync(IPrivateFileReference file, bool withMetadata)

Parameters

file IPrivateFileReference

The reference holding the file path.

withMetadata Boolean

If set to true, fetch metadata for the file.

Returns

ValueTask<IFileReference>

The at path.

GetAsync(Uri, Boolean)

Gets the file reference from URI.

ValueTask<IFileReference> GetAsync(Uri uri, bool withMetadata)

Parameters

uri Uri

The file uniform resource identifier (URI).

withMetadata Boolean

If set to true, fetch metadata for the file.

Returns

ValueTask<IFileReference>

The at path.

Exceptions

InvalidOperationException

DeleteAsync(IPrivateFileReference)

Deletes the file.

Task DeleteAsync(IPrivateFileReference file)

Parameters

file IPrivateFileReference

The reference holding the file path.

Returns

Task

A task that represents the asynchronous operation.

ReadAsync(IPrivateFileReference)

Reads the file content.

ValueTask<Stream> ReadAsync(IPrivateFileReference file)

Parameters

file IPrivateFileReference

The reference holding the file path.

Returns

ValueTask<Stream>

A containing the file content.

ReadAllBytesAsync(IPrivateFileReference)

Reads the file content.

ValueTask<Byte[]> ReadAllBytesAsync(IPrivateFileReference file)

Parameters

file IPrivateFileReference

The reference holding the file path.

Returns

ValueTask<Byte[]>

A containing the file content.

ReadAllTextAsync(IPrivateFileReference)

Reads the file content.

ValueTask<string> ReadAllTextAsync(IPrivateFileReference file)

Parameters

file IPrivateFileReference

The reference holding the file path.

Returns

ValueTask<String>

A containing the file content.

SaveAsync(Byte[], IPrivateFileReference, String, OverwritePolicy, IDictionary<String, String>)

Saves the file.

ValueTask<IFileReference> SaveAsync(Byte[] data, IPrivateFileReference file, string contentType, OverwritePolicy overwritePolicy, IDictionary<string, string> metadata)

Parameters

data Byte[]

The file content.

file IPrivateFileReference

The reference holding the file path.

contentType String

The content-type of the file.

overwritePolicy OverwritePolicy

The 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.

ValueTask<IFileReference> SaveAsync(Stream data, IPrivateFileReference file, string contentType, OverwritePolicy overwritePolicy, IDictionary<string, string> metadata)

Parameters

data Stream

The file content.

file IPrivateFileReference

The reference holding the file path.

contentType String

The content-type of the file.

overwritePolicy OverwritePolicy

The overwrite policy.

metadata IDictionary<String, String>

The metadata.

Returns

ValueTask<IFileReference>

The saved .

Exceptions

FileAlreadyExistsException

GetSharedAccessSignatureAsync(ISharedAccessPolicy)

Gets a shared access signature.

ValueTask<string> GetSharedAccessSignatureAsync(ISharedAccessPolicy policy)

Parameters

policy ISharedAccessPolicy

The policy.

Returns

ValueTask<String>

A shared access signature to read or list the store files.

Exceptions

NotSupportedException


< Back

@asiffermann asiffermann added the documentation Improvements or additions to documentation label May 2, 2021
@asiffermann asiffermann added this to the 0.2.0 milestone May 2, 2021
@asiffermann asiffermann modified the milestones: 0.2.0, Future May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant