VirtualFileExtensions
Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class VirtualFileExtensions
Methods
ShouldSkipPath(IVirtualNode)
View Source
Declaration
public static bool ShouldSkipPath(this IVirtualNode node)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualNode | node |
GetAllRootDirectories(IVirtualPathProvider)
View Source
Declaration
public static IVirtualDirectory[] GetAllRootDirectories(this IVirtualPathProvider vfs)
Returns
ServiceStack.IO.IVirtualDirectory[]
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
GetVirtualFileSource<T>(IVirtualPathProvider)
View Source
Declaration
public static T GetVirtualFileSource<T>(this IVirtualPathProvider vfs)
where T : class
Returns
<T>
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
Type Parameters
T
GetMemoryVirtualFiles(IVirtualPathProvider)
View Source
Declaration
public static MemoryVirtualFiles GetMemoryVirtualFiles(this IVirtualPathProvider vfs)
Returns
ServiceStack.IO.MemoryVirtualFiles
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
GetFileSystemVirtualFiles(IVirtualPathProvider)
View Source
Declaration
public static FileSystemVirtualFiles GetFileSystemVirtualFiles(this IVirtualPathProvider vfs)
Returns
ServiceStack.IO.FileSystemVirtualFiles
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
GetGistVirtualFiles(IVirtualPathProvider)
View Source
Declaration
public static GistVirtualFiles GetGistVirtualFiles(this IVirtualPathProvider vfs)
Returns
ServiceStack.IO.GistVirtualFiles
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
GetResourceVirtualFiles(IVirtualPathProvider)
View Source
Declaration
public static ResourceVirtualFiles GetResourceVirtualFiles(this IVirtualPathProvider vfs)
Returns
ServiceStack.IO.ResourceVirtualFiles
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
GetTextContentsAsMemory(IVirtualFile)
View Source
Declaration
public static ReadOnlyMemory<char> GetTextContentsAsMemory(this IVirtualFile file)
Returns
ReadOnlyMemory<System.Char>
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualFile | file |
GetBytesContentsAsMemory(IVirtualFile)
View Source
Declaration
public static ReadOnlyMemory<byte> GetBytesContentsAsMemory(this IVirtualFile file)
Returns
ReadOnlyMemory<System.Byte>
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualFile | file |
GetBytesContentsAsBytes(IVirtualFile)
View Source
Declaration
public static byte[] GetBytesContentsAsBytes(this IVirtualFile file)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualFile | file |