Skip to main content

ResourceVirtualDirectory

Assembly: ServiceStack.Common.dll
View Source
Declaration
public class ResourceVirtualDirectory : AbstractVirtualDirectoryBase, IVirtualDirectory, IVirtualNode, IEnumerable<IVirtualNode>, IEnumerable

Properties

EmbeddedResourceTreatAsFiles

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

rootNamespace

View Source
Declaration
public string rootNamespace { get; set; }

Files

View Source
Declaration
public override IEnumerable<IVirtualFile> Files { get; }

Directories

View Source
Declaration
public override IEnumerable<IVirtualDirectory> Directories { get; }

Name

View Source
Declaration
public override string Name { get; }

DirectoryName

View Source
Declaration
public string DirectoryName { get; set; }

LastModified

View Source
Declaration
public override DateTime LastModified { get; }

Inherited Properties

Directories

View Source
Declaration
public abstract IEnumerable<IVirtualDirectory> Directories { get; }

Directory

View Source
Declaration
public IVirtualDirectory Directory { get; }

Files

View Source
Declaration
public abstract IEnumerable<IVirtualFile> Files { get; }

IsDirectory

View Source
Declaration
public virtual bool IsDirectory { get; }

IsRoot

View Source
Declaration
public virtual bool IsRoot { get; }

LastModified

View Source
Declaration
public abstract DateTime LastModified { get; }

Name

View Source
Declaration
public abstract string Name { get; }

ParentDirectory

View Source
Declaration
public IVirtualDirectory ParentDirectory { get; set; }

RealPath

View Source
Declaration
public virtual string RealPath { get; }

VirtualPath

View Source
Declaration
public virtual string VirtualPath { get; }

Fields

backingAssembly

View Source
Declaration
protected Assembly backingAssembly

SubDirectories

View Source
Declaration
protected List<ResourceVirtualDirectory> SubDirectories

SubFiles

View Source
Declaration
protected List<ResourceVirtualFile> SubFiles

Methods

GetResourceNames(Assembly, String)

View Source
Declaration
public static List<string> GetResourceNames(Assembly asm, string basePath)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.Reflection.Assemblyasm
System.StringbasePath

InitializeDirectoryStructure(List<String>)

View Source
Declaration
protected void InitializeDirectoryStructure(List<string> manifestResourceNames)
Parameters
TypeName
System.Collections.Generic.List<System.String>manifestResourceNames

CreateVirtualDirectory(IGrouping<String, String[]>)

View Source
Declaration
protected virtual ResourceVirtualDirectory CreateVirtualDirectory(IGrouping<string, string[]> subResources)
Returns

ServiceStack.VirtualPath.ResourceVirtualDirectory

Parameters
TypeName
System.Linq.IGrouping<System.String,System.String[]>subResources

CreateVirtualFile(String)

View Source
Declaration
protected virtual ResourceVirtualFile CreateVirtualFile(string resourceName)
Returns

ServiceStack.VirtualPath.ResourceVirtualFile

Parameters
TypeName
System.StringresourceName

ConsumeTokensForVirtualDir(Stack<String>)

View Source
Declaration
protected virtual ResourceVirtualDirectory ConsumeTokensForVirtualDir(Stack<string> resourceTokens)
Returns

ServiceStack.VirtualPath.ResourceVirtualDirectory

Parameters
TypeName
System.Collections.Generic.Stack<System.String>resourceTokens

GetEnumerator()

View Source
Declaration
public override IEnumerator<IVirtualNode> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<ServiceStack.IO.IVirtualNode>

GetFileFromBackingDirectoryOrDefault(String)

View Source
Declaration
protected override IVirtualFile GetFileFromBackingDirectoryOrDefault(string fileName)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringfileName

TranslatePath(String)

View Source
Declaration
public string TranslatePath(string path)
Returns

System.String

Parameters
TypeName
System.Stringpath

GetMatchingFilesInDir(String)

View Source
Declaration
protected override IEnumerable<IVirtualFile> GetMatchingFilesInDir(string globPattern)
Returns

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

Parameters
TypeName
System.StringglobPattern

GetDirectoryFromBackingDirectoryOrDefault(String)

View Source
Declaration
protected override IVirtualDirectory GetDirectoryFromBackingDirectoryOrDefault(string directoryName)
Returns

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.StringdirectoryName

GetRealPathToRoot()

View Source
Declaration
protected override string GetRealPathToRoot()
Returns

System.String

Inherited Methods

Equals(Object)

View Source
Declaration
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

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(Stack<String>)

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

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.Collections.Generic.Stack<System.String>virtualPath

GetDirectory(String)

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

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.StringvirtualPath

GetDirectoryFromBackingDirectoryOrDefault(String)

View Source
Declaration
protected abstract IVirtualDirectory GetDirectoryFromBackingDirectoryOrDefault(string directoryName)
Returns

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.StringdirectoryName

GetEnumerator()

View Source
Declaration
public abstract IEnumerator<IVirtualNode> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<ServiceStack.IO.IVirtualNode>

GetFile(Stack<String>)

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

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.Collections.Generic.Stack<System.String>virtualPath

GetFile(String)

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

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringvirtualPath

GetFileFromBackingDirectoryOrDefault(String)

View Source
Declaration
protected abstract IVirtualFile GetFileFromBackingDirectoryOrDefault(string fileName)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringfileName

GetHashCode()

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32

GetMatchingFilesInDir(String)

View Source
Declaration
protected abstract IEnumerable<IVirtualFile> GetMatchingFilesInDir(string globPattern)
Returns

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

Parameters
TypeName
System.StringglobPattern

GetPathToRoot(String, Func<IVirtualDirectory, String>)

View Source
Declaration
protected virtual string GetPathToRoot(string separator, Func<IVirtualDirectory, string> pathSel)
Returns

System.String

Parameters
TypeName
System.Stringseparator
System.Func<ServiceStack.IO.IVirtualDirectory,System.String>pathSel

GetRealPathToRoot()

View Source
Declaration
protected virtual string GetRealPathToRoot()
Returns

System.String

GetVirtualPathToRoot()

View Source
Declaration
protected virtual string GetVirtualPathToRoot()
Returns

System.String

IEnumerable.GetEnumerator()

View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns

System.Collections.IEnumerator

ToString()

View Source
Declaration
public override string ToString()
Returns

System.String

Implements