PublicUrlProvider
Namespace: Proffer.Storage.FileSystem.Server.Internal
Provides a way to serve files from an HTTP URL on a File System using an ASP.NET middleware.
public class PublicUrlProvider : Proffer.Storage.FileSystem.IPublicUrlProvider
Inheritance Object → PublicUrlProvider
Implements IPublicUrlProvider
Constructors
PublicUrlProvider(IOptions<FileSystemStorageServerOptions>)
Initializes a new instance of the PublicUrlProvider class.
public PublicUrlProvider(IOptions<FileSystemStorageServerOptions> options)
Parameters
options
IOptions<FileSystemStorageServerOptions>
The options.
Methods
GetPublicUrl(String, FileSystemFileReference)
Gets the public URL of a file reference.
public string GetPublicUrl(string storeName, FileSystemFileReference file)
Parameters
storeName
String
The name of the store.
file
FileSystemFileReference
The reference holding the file path.
Returns
The public URL.