AbstractVirtualFileBase
Assembly: ServiceStack.Common.dll
View Source
Declaration
public abstract class AbstractVirtualFileBase : IVirtualFile, IVirtualNode
Properties
ScanSkipPaths
View Source
Declaration
public static List<string> ScanSkipPaths { get; set; }
VirtualPathProvider
View Source
Declaration
public IVirtualPathProvider VirtualPathProvider { get; set; }
Extension
View Source
Declaration
public virtual string Extension { get; }
Directory
View Source
Declaration
public IVirtualDirectory Directory { get; set; }
Name
View Source
Declaration
public abstract string Name { get; }
VirtualPath
View Source
Declaration
public virtual string VirtualPath { get; }
RealPath
View Source
Declaration
public virtual string RealPath { get; }
IsDirectory
View Source
Declaration
public virtual bool IsDirectory { get; }
LastModified
View Source
Declaration
public abstract DateTime LastModified { get; }
Length
View Source
Declaration
public abstract long Length { get; }
Methods
GetFileHash()
View Source
Declaration
public virtual string GetFileHash()
Returns
System.String
OpenText()
View Source
Declaration
public virtual StreamReader OpenText()
Returns
System.IO.StreamReader
ReadAllText()
View Source
Declaration
public virtual string ReadAllText()
Returns
System.String
ReadAllBytes()
View Source
Declaration
public virtual byte[] ReadAllBytes()
Returns
System.Byte[]
OpenRead()
View Source
Declaration
public abstract Stream OpenRead()
Returns
System.IO.Stream
GetContents()
View Source
Declaration
public virtual object GetContents()
Returns
System.Object
GetVirtualPathToRoot()
View Source
Declaration
protected virtual string GetVirtualPathToRoot()
Returns
System.String
GetRealPathToRoot()
View Source
Declaration
protected virtual string GetRealPathToRoot()
Returns
System.String
GetPathToRoot(String, Func<IVirtualDirectory, String>)
View Source
Declaration
protected virtual string GetPathToRoot(string separator, Func<IVirtualDirectory, string> pathSel)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | separator |
System.Func<ServiceStack.IO.IVirtualDirectory,System.String> | pathSel |
Equals(Object)
View Source
Declaration
public override bool Equals(object obj)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | obj |
GetHashCode()
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32
ToString()
View Source
Declaration
public override string ToString()
Returns
System.String
Refresh()
View Source
Declaration
public virtual void Refresh()
WritePartialToAsync(Stream, Int64, Int64, CancellationToken)
View Source
Declaration
public virtual async Task WritePartialToAsync(Stream toStream, long start, long end, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.IO.Stream | toStream |
System.Int64 | start |
System.Int64 | end |
System.Threading.CancellationToken | token |