Skip to main content

VirtualPathUtils

Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class VirtualPathUtils

Properties

MaxRetryOnExceptionTimeout

View Source
Declaration
public static TimeSpan MaxRetryOnExceptionTimeout { get; }

Methods

TokenizeVirtualPath(String, IVirtualPathProvider)

View Source
Declaration
public static Stack<string> TokenizeVirtualPath(this string str, IVirtualPathProvider pathProvider)
Returns

System.Collections.Generic.Stack<System.String>

Parameters
TypeName
System.Stringstr
ServiceStack.IO.IVirtualPathProviderpathProvider

TokenizeVirtualPath(String, String)

View Source
Declaration
public static Stack<string> TokenizeVirtualPath(this string str, string virtualPathSeparator)
Returns

System.Collections.Generic.Stack<System.String>

Parameters
TypeName
System.Stringstr
System.StringvirtualPathSeparator

TokenizeResourcePath(String, Char)

View Source
Declaration
public static Stack<string> TokenizeResourcePath(this string str, char pathSeparator = '.')
Returns

System.Collections.Generic.Stack<System.String>

Parameters
TypeName
System.Stringstr
System.CharpathSeparator

GroupByFirstToken(IEnumerable<String>, Char)

View Source
Declaration
public static IEnumerable<IGrouping<string, string[]>> GroupByFirstToken(this IEnumerable<string> resourceNames, char pathSeparator = '.')
Returns

System.Collections.Generic.IEnumerable<System.Linq.IGrouping<System.String,System.String[]>>

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>resourceNames
System.CharpathSeparator

ReadAllBytes(IVirtualFile)

View Source
Declaration
public static byte[] ReadAllBytes(this IVirtualFile file)
Returns

System.Byte[]

Parameters
TypeName
ServiceStack.IO.IVirtualFilefile

Exists(IVirtualNode)

View Source
Declaration
public static bool Exists(this IVirtualNode node)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IO.IVirtualNodenode

IsFile(IVirtualNode)

View Source
Declaration
public static bool IsFile(this IVirtualNode node)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IO.IVirtualNodenode

IsDirectory(IVirtualNode)

View Source
Declaration
public static bool IsDirectory(this IVirtualNode node)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IO.IVirtualNodenode

GetVirtualNode(IVirtualPathProvider, String)

View Source
Declaration
public static IVirtualNode GetVirtualNode(this IVirtualPathProvider pathProvider, string virtualPath)
Returns

ServiceStack.IO.IVirtualNode

Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringvirtualPath

GetDefaultDocument(IVirtualDirectory, List<String>)

View Source
Declaration
public static IVirtualFile GetDefaultDocument(this IVirtualDirectory dir, List<string> defaultDocuments)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
ServiceStack.IO.IVirtualDirectorydir
System.Collections.Generic.List<System.String>defaultDocuments

SafeFileName(String)

View Source
Declaration
public static string SafeFileName(string uri)
Returns

System.String

Parameters
TypeName
System.Stringuri

IsValidFileName(String)

View Source
Declaration
public static bool IsValidFileName(string path)
Returns

System.Boolean

Parameters
TypeName
System.Stringpath

IsValidFilePath(String)

View Source
Declaration
public static bool IsValidFilePath(string path)
Returns

System.Boolean

Parameters
TypeName
System.Stringpath