Skip to main content

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
TypeName
ServiceStack.IO.IVirtualNodenode

GetAllRootDirectories(IVirtualPathProvider)

View Source
Declaration
public static IVirtualDirectory[] GetAllRootDirectories(this IVirtualPathProvider vfs)
Returns

ServiceStack.IO.IVirtualDirectory[]

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs

GetVirtualFileSource<T>(IVirtualPathProvider)

View Source
Declaration
public static T GetVirtualFileSource<T>(this IVirtualPathProvider vfs)
where T : class
Returns

<T>

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs
Type Parameters
  • T

GetMemoryVirtualFiles(IVirtualPathProvider)

View Source
Declaration
public static MemoryVirtualFiles GetMemoryVirtualFiles(this IVirtualPathProvider vfs)
Returns

ServiceStack.IO.MemoryVirtualFiles

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs

GetFileSystemVirtualFiles(IVirtualPathProvider)

View Source
Declaration
public static FileSystemVirtualFiles GetFileSystemVirtualFiles(this IVirtualPathProvider vfs)
Returns

ServiceStack.IO.FileSystemVirtualFiles

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs

GetGistVirtualFiles(IVirtualPathProvider)

View Source
Declaration
public static GistVirtualFiles GetGistVirtualFiles(this IVirtualPathProvider vfs)
Returns

ServiceStack.IO.GistVirtualFiles

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs

GetResourceVirtualFiles(IVirtualPathProvider)

View Source
Declaration
public static ResourceVirtualFiles GetResourceVirtualFiles(this IVirtualPathProvider vfs)
Returns

ServiceStack.IO.ResourceVirtualFiles

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs

GetTextContentsAsMemory(IVirtualFile)

View Source
Declaration
public static ReadOnlyMemory<char> GetTextContentsAsMemory(this IVirtualFile file)
Returns

ReadOnlyMemory<System.Char>

Parameters
TypeName
ServiceStack.IO.IVirtualFilefile

GetBytesContentsAsMemory(IVirtualFile)

View Source
Declaration
public static ReadOnlyMemory<byte> GetBytesContentsAsMemory(this IVirtualFile file)
Returns

ReadOnlyMemory<System.Byte>

Parameters
TypeName
ServiceStack.IO.IVirtualFilefile

GetBytesContentsAsBytes(IVirtualFile)

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

System.Byte[]

Parameters
TypeName
ServiceStack.IO.IVirtualFilefile