GistVirtualFile
Assembly: ServiceStack.Common.dll
View Source
Declaration
public class GistVirtualFile : AbstractVirtualFileBase, IVirtualFile, IVirtualNode
Properties
Client
View Source
Declaration
public IGistGateway Client { get; }
GistId
View Source
Declaration
public string GistId { get; }
Extension
View Source
Declaration
public override string Extension { get; }
DirPath
View Source
Declaration
public string DirPath { get; }
FilePath
View Source
Declaration
public string FilePath { get; set; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
Name
View Source
Declaration
public override string Name { get; }
VirtualPath
View Source
Declaration
public override string VirtualPath { get; }
FileLastModified
View Source
Declaration
public DateTime FileLastModified { get; set; }
LastModified
View Source
Declaration
public override DateTime LastModified { get; }
Length
View Source
Declaration
public override long Length { get; }
ContentLength
View Source
Declaration
public long ContentLength { get; set; }
Text
View Source
Declaration
public string Text { get; set; }
Stream
View Source
Declaration
public Stream Stream { get; set; }
Inherited Properties
Directory
View Source
Declaration
public IVirtualDirectory Directory { get; set; }
Extension
View Source
Declaration
public virtual string Extension { 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; }
Name
View Source
Declaration
public abstract string Name { get; }
RealPath
View Source
Declaration
public virtual string RealPath { get; }
ScanSkipPaths
View Source
Declaration
public static List<string> ScanSkipPaths { get; set; }
VirtualPath
View Source
Declaration
public virtual string VirtualPath { get; }
VirtualPathProvider
View Source
Declaration
public IVirtualPathProvider VirtualPathProvider { get; set; }
Methods
Init(String, DateTime, String, MemoryStream)
View Source
Declaration
public GistVirtualFile Init(string filePath, DateTime lastModified, string text, MemoryStream stream)
Returns
ServiceStack.IO.GistVirtualFile
Parameters
Type | Name |
---|---|
System.String | filePath |
System.DateTime | lastModified |
System.String | text |
System.IO.MemoryStream | stream |
OpenRead()
View Source
Declaration
public override Stream OpenRead()
Returns
System.IO.Stream
GetContents()
View Source
Declaration
public override object GetContents()
Returns
System.Object
Refresh()
View Source
Declaration
public override void Refresh()
Inherited Methods
Equals(Object)
View Source
Declaration
public override bool Equals(object obj)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | obj |
GetContents()
View Source
Declaration
public virtual object GetContents()
Returns
System.Object
GetFileHash()
View Source
Declaration
public virtual string GetFileHash()
Returns
System.String
GetHashCode()
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32
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 |
GetRealPathToRoot()
View Source
Declaration
protected virtual string GetRealPathToRoot()
Returns
System.String
GetVirtualPathToRoot()
View Source
Declaration
protected virtual string GetVirtualPathToRoot()
Returns
System.String
OpenRead()
View Source
Declaration
public abstract Stream OpenRead()
Returns
System.IO.Stream
OpenText()
View Source
Declaration
public virtual StreamReader OpenText()
Returns
System.IO.StreamReader
ReadAllBytes()
View Source
Declaration
public virtual byte[] ReadAllBytes()
Returns
System.Byte[]
ReadAllText()
View Source
Declaration
public virtual string ReadAllText()
Returns
System.String
Refresh()
View Source
Declaration
public virtual void Refresh()
ToString()
View Source
Declaration
public override string ToString()
Returns
System.String
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 |