C# Class MiniWeb.AssetStorage.FileSystem.MiniWebAssetFileSystemStorage

Inheritance: IMiniWebAssetStorage
Show file Open project: IRooc/miniweb-coreclr

Public Methods

Method 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

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

Method Details

CreateAsset() public method

public CreateAsset ( string fileName, byte bytes, string virtualFolder = null ) : IAsset
fileName string
bytes byte
virtualFolder string
return IAsset

CreateAsset() public method

public CreateAsset ( string fileName, string base64String, string virtualFolder = null ) : IAsset
fileName string
base64String string
virtualFolder string
return IAsset

GetAllAssets() public method

public GetAllAssets ( ) : IEnumerable
return IEnumerable

MiniWebAssetFileSystemStorage() public method

public MiniWebAssetFileSystemStorage ( IHostingEnvironment env, ILoggerFactory loggerfactory, IOptions config ) : System
env IHostingEnvironment
loggerfactory ILoggerFactory
config IOptions
return System

RemoveAsset() public method

public RemoveAsset ( IAsset asset ) : void
asset IAsset
return void