Skip to main content

ResourceVirtualFiles

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class ResourceVirtualFiles : AbstractVirtualPathProviderBase, IVirtualPathProvider

Properties

BackingAssembly

View Source
Declaration
public Assembly BackingAssembly { get; }

RootNamespace

View Source
Declaration
public string RootNamespace { get; }

RootDirectory

View Source
Declaration
public override IVirtualDirectory RootDirectory { get; }

VirtualPathSeparator

View Source
Declaration
public override string VirtualPathSeparator { get; }

RealPathSeparator

View Source
Declaration
public override string RealPathSeparator { get; }

LastModified

View Source
Declaration
public DateTime LastModified { get; set; }

PartialFileNames

View Source
Declaration
public static HashSet<string> PartialFileNames { get; set; }

Inherited Properties

RealPathSeparator

View Source
Declaration
public abstract string RealPathSeparator { get; }

RootDirectory

View Source
Declaration
public abstract IVirtualDirectory RootDirectory { get; }

VirtualPathSeparator

View Source
Declaration
public abstract string VirtualPathSeparator { get; }

Fields

RootDir

View Source
Declaration
protected ResourceVirtualDirectory RootDir

Methods

CleanPath(String)

View Source
Declaration
public string CleanPath(string filePath)
Returns

System.String

Parameters
TypeName
System.StringfilePath

GetFile(String)

View Source
Declaration
public override IVirtualFile GetFile(string virtualPath)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringvirtualPath

Initialize()

View Source
Declaration
protected sealed override void Initialize()

CombineVirtualPath(String, String)

View Source
Declaration
public override string CombineVirtualPath(string basePath, string relativePath)
Returns

System.String

Parameters
TypeName
System.StringbasePath
System.StringrelativePath

Inherited Methods

AppendFile(String, ReadOnlyMemory<Byte>)

View Source
Declaration
public virtual void AppendFile(string path, ReadOnlyMemory<byte> bytes)
Parameters
TypeName
System.Stringpath
ReadOnlyMemory<System.Byte>bytes

AppendFile(String, ReadOnlyMemory<Char>)

View Source
Declaration
public virtual void AppendFile(string path, ReadOnlyMemory<char> text)
Parameters
TypeName
System.Stringpath
ReadOnlyMemory<System.Char>text

AppendFile(String, Object)

View Source
Declaration
public virtual void AppendFile(string path, object contents)
Parameters
TypeName
System.Stringpath
System.Objectcontents

AssertVirtualFiles()

View Source
Declaration
protected IVirtualFiles AssertVirtualFiles()
Returns

ServiceStack.IO.IVirtualFiles

CombineVirtualPath(String, String)

View Source
Declaration
public virtual string CombineVirtualPath(string basePath, string relativePath)
Returns

System.String

Parameters
TypeName
System.StringbasePath
System.StringrelativePath

CreateContentNotSupportedException(Object)

View Source
Declaration
protected NotSupportedException CreateContentNotSupportedException(object value)
Returns

System.NotSupportedException

Parameters
TypeName
System.Objectvalue

DirectoryExists(String)

View Source
Declaration
public virtual bool DirectoryExists(string virtualPath)
Returns

System.Boolean

Parameters
TypeName
System.StringvirtualPath

FileExists(String)

View Source
Declaration
public virtual bool FileExists(string virtualPath)
Returns

System.Boolean

Parameters
TypeName
System.StringvirtualPath

GetAllFiles()

View Source
Declaration
public virtual IEnumerable<IVirtualFile> GetAllFiles()
Returns

System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>

GetAllMatchingFiles(String, Int32)

View Source
Declaration
public virtual IEnumerable<IVirtualFile> GetAllMatchingFiles(string globPattern, int maxDepth = 2147483647)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>

Parameters
TypeName
System.StringglobPattern
System.Int32maxDepth

GetDirectory(String)

View Source
Declaration
public virtual IVirtualDirectory GetDirectory(string virtualPath)
Returns

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.StringvirtualPath

GetFile(String)

View Source
Declaration
public virtual IVirtualFile GetFile(string virtualPath)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringvirtualPath

GetFileHash(IVirtualFile)

View Source
Declaration
public virtual string GetFileHash(IVirtualFile virtualFile)
Returns

System.String

Parameters
TypeName
ServiceStack.IO.IVirtualFilevirtualFile

GetFileHash(String)

View Source
Declaration
public virtual string GetFileHash(string virtualPath)
Returns

System.String

Parameters
TypeName
System.StringvirtualPath

GetRootDirectories()

View Source
Declaration
public virtual IEnumerable<IVirtualDirectory> GetRootDirectories()
Returns

System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualDirectory>

GetRootFiles()

View Source
Declaration
public virtual IEnumerable<IVirtualFile> GetRootFiles()
Returns

System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>

Initialize()

View Source
Declaration
protected abstract void Initialize()

IsSharedFile(IVirtualFile)

View Source
Declaration
public virtual bool IsSharedFile(IVirtualFile virtualFile)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IO.IVirtualFilevirtualFile

IsViewFile(IVirtualFile)

View Source
Declaration
public virtual bool IsViewFile(IVirtualFile virtualFile)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IO.IVirtualFilevirtualFile

SanitizePath(String)

View Source
Declaration
public virtual string SanitizePath(string filePath)
Returns

System.String

Parameters
TypeName
System.StringfilePath

ToString()

View Source
Declaration
public override string ToString()
Returns

System.String

WriteFile(String, ReadOnlyMemory<Byte>)

View Source
Declaration
public virtual void WriteFile(string path, ReadOnlyMemory<byte> bytes)
Parameters
TypeName
System.Stringpath
ReadOnlyMemory<System.Byte>bytes

WriteFile(String, ReadOnlyMemory<Char>)

View Source
Declaration
public virtual void WriteFile(string path, ReadOnlyMemory<char> text)
Parameters
TypeName
System.Stringpath
ReadOnlyMemory<System.Char>text

WriteFile(String, Object)

View Source
Declaration
public virtual void WriteFile(string path, object contents)
Parameters
TypeName
System.Stringpath
System.Objectcontents

WriteFileAsync(String, Object, CancellationToken)

View Source
Declaration
public virtual Task WriteFileAsync(string path, object contents, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringpath
System.Objectcontents
System.Threading.CancellationTokentoken

WriteFiles(Dictionary<String, Object>)

View Source
Declaration
public virtual void WriteFiles(Dictionary<string, object> files)
Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>files

WriteFiles(Dictionary<String, String>)

View Source
Declaration
public virtual void WriteFiles(Dictionary<string, string> textFiles)
Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>textFiles

Implements