ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
ImageResizer.Plugins.DiskCache.Async.AsyncWrite Class Reference

Public Member Functions

 AsyncWrite (AsyncWriteCollection parent, MemoryStream data, string physicalPath, string relativePath, DateTime modifiedDateUtc)
 
long GetDataLength ()
 
long GetBufferLength ()
 
MemoryStream GetReadonlyStream ()
 Wraps the data in a readonly MemoryStream so it can be accessed on another thread More...
 

Properties

AsyncWriteCollection Parent [get]
 
string PhysicalPath [get]
 
string RelativePath [get]
 
DateTime ModifiedDateUtc [get]
 
DateTime JobCreatedAt [get]
 Returns the UTC time this AsyncWrite object was created. More...
 

Detailed Description

Definition at line 7 of file AsyncWrite.cs.

Member Function Documentation

MemoryStream ImageResizer.Plugins.DiskCache.Async.AsyncWrite.GetReadonlyStream ( )
inline

Wraps the data in a readonly MemoryStream so it can be accessed on another thread

Returns

Definition at line 63 of file AsyncWrite.cs.

Referenced by ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile().

63  {
64  //Wrap the original buffer in a new MemoryStream.
65  return new MemoryStream(_data.GetBuffer(), 0, (int)_data.Length, false, true);
66  }

Property Documentation

DateTime ImageResizer.Plugins.DiskCache.Async.AsyncWrite.JobCreatedAt
get

Returns the UTC time this AsyncWrite object was created.

Definition at line 48 of file AsyncWrite.cs.


The documentation for this class was generated from the following file: