C# Class MiniWeb.AssetStorage.FileSystem.MiniWebAssetFileSystemStorage

Inheritance: IMiniWebAssetStorage
Afficher le fichier Open project: IRooc/miniweb-coreclr

Méthodes publiques

Méthode Description
CreateAsset ( string fileName, byte bytes, string virtualFolder = null ) : IAsset
CreateAsset ( string fileName, string base64String, string virtualFolder = null ) : IAsset
GetAllAssets ( ) : IEnumerable
MiniWebAssetFileSystemStorage ( IHostingEnvironment env, ILoggerFactory loggerfactory, IOptions config ) : System
RemoveAsset ( IAsset asset ) : void

Private Methods

Méthode Description
ConvertToBytes ( string base64 ) : byte[]
GetVirtualPath ( string path ) : string
SetupLogging ( ILoggerFactory loggerfactory ) : ILogger

Method Details

CreateAsset() public méthode

public CreateAsset ( string fileName, byte bytes, string virtualFolder = null ) : IAsset
fileName string
bytes byte
virtualFolder string
Résultat IAsset

CreateAsset() public méthode

public CreateAsset ( string fileName, string base64String, string virtualFolder = null ) : IAsset
fileName string
base64String string
virtualFolder string
Résultat IAsset

GetAllAssets() public méthode

public GetAllAssets ( ) : IEnumerable
Résultat IEnumerable

MiniWebAssetFileSystemStorage() public méthode

public MiniWebAssetFileSystemStorage ( IHostingEnvironment env, ILoggerFactory loggerfactory, IOptions config ) : System
env IHostingEnvironment
loggerfactory ILoggerFactory
config IOptions
Résultat System

RemoveAsset() public méthode

public RemoveAsset ( IAsset asset ) : void
asset IAsset
Résultat void