Class Resource
Summary description for Resource.
Inheritance
System.Object
Resource
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Blob.WebDavServer
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0Syntax
public class Resource
Constructors
Resource(String)
Initializes a new instance of the Resource class.
Declaration
public Resource(string ticket)
Parameters
Type | Name | Description |
---|---|---|
System.String | ticket | The ticket. |
Fields
BufferSize
Declaration
public const int BufferSize = 655360
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
ContentLength
Declaration
public long ContentLength { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
ContentType
Declaration
public string ContentType { get; }
Property Value
Type | Description |
---|---|
System.String |
Created
Declaration
public DateTime Created { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Modified
Declaration
public DateTime Modified { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Name
Declaration
public string Name { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
CommitActions()
Commits the actions.
Declaration
public void CommitActions()
LoadTicket(String)
Loads the ticket.
Declaration
public void LoadTicket(string strTicket)
Parameters
Type | Name | Description |
---|---|---|
System.String | strTicket | The STR ticket. |
Lock(Lock)
Locks the specified lock info.
Declaration
public void Lock(Lock lockInfo)
Parameters
Type | Name | Description |
---|---|---|
Lock | lockInfo | The lock info. |
OpenRead()
Opens the read.
Declaration
public Stream OpenRead()
Returns
Type | Description |
---|---|
System.IO.Stream |
OpenWrite()
Opens the write.
Declaration
public Stream OpenWrite()
Returns
Type | Description |
---|---|
System.IO.Stream |
RefreshLock(Lock)
Refreshes the lock.
Declaration
public void RefreshLock(Lock lockInfo)
Parameters
Type | Name | Description |
---|---|---|
Lock | lockInfo | The lock info. |
SaveFromStream(Stream)
Saves from stream.
Declaration
public void SaveFromStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream. |
Unlock(String)
Unlocks the specified lock token.
Declaration
public static void Unlock(string lockToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | lockToken | The lock token. |
WriteToStream(Stream, Int64, Int64)
Writes to stream.
Declaration
public void WriteToStream(Stream stream, long startOffset, long length)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream. |
System.Int64 | startOffset | The start offset. |
System.Int64 | length | The length. |