- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- BitmapViewer Class
- BitmapViewerClientSideOptions Class
- BrowserImageFormat Enumeration
- ControllerConverter Class
- ControlNotFoundException Class
- FileCache Class
- FileCacheTimeoutException Class
- ImageClickEventArgs Class
- ImageClickEventHandler Delegate
- ImageControlBase Class
- INavigator Interface
- IRubberband Interface
- IUserInputController Interface
- NavigatorConverter Class
- PanNavigator Class
- RectangleController Class
- RectangleEventArgs Class
- RectangleEventHandler Delegate
- RectangleRubberband Class
- RemoteScriptingMethodAttribute Class
- RemoteScriptingParameterCountException Class
- RemoteScriptingTypeNotSupportedException Class
- ResizeMode Enumeration
- RubberbandConverter Class
- ScrollBarsStyle Enumeration
- UserInputController Class
- ZoomInNavigator Class
- ZoomMode Enumeration
- ZoomOutNavigator Class
- ZoomQuality Enumeration
- ZoomRectangleNavigator Class
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
This documentation is for the old version. Go to the latest Graphics Mill docs
FileCache Class
This class manages the private and public file cache used by the BitmapViewer.
Namespace:
Aurigma.GraphicsMill.WebControls
Assembly:
Aurigma.GraphicsMill.WebControls (in Aurigma.GraphicsMill.WebControls.dll)
Syntax
Visual Basic
Public Class FileCache
C#
public class FileCache
Remarks
This class is used if you need to store your own files in the Graphics Mill cache (e.g. if you add some extra functionality to the web control). Using this class you can generate unique filenames and get both physical and virtual paths to these files. The Graphics Mill cache will take care about these files lifetime, etc.
The workflow for using this class is the following:
- Use the GetInstance() method. This static method returns you an instance of the FileCache class.
- Everytime you need to create a temporary file in the private cache (i.e. the file which should not be sent to the client), use the GetPrivateTempFileName(String) method. It will generate the unique file name, append specified extension, and "register" it as a temporary file. To get a temporary file name for the public cache (i.e. the file which will be available for the download), use the GetPublicTempFileName(String) method.
- To create the temporary file with the name generated at the previous step, you need to get a full path (including the path to the folder which contains a cache). Methods GetAbsolutePrivateCachePath(String) and GetAbsolutePublicCachePath(String) prepend the path to the private and public cache correspondingly. This way you can pass the result string to the Save(String) method or any other method which creates a file.
- If you need to convert a path to the temporary file into the URL, use the GetRelativePublicCachePath(String) method. It will prepend the virtual path to the specified filename.
Inheritance Hierarchy
System.Object
L
Aurigma.GraphicsMill.WebControls.FileCache
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.Object Model


