FolderSchemeHandlerFactory Class (original) (raw)

Version 118.6.80

FolderSchemeHandlerFactory is a very simple scheme handler that allows you to map requests for urls to a folder on your file system. For example creating a setting the rootFolder to c:\projects\CefSharp\CefSharp.Example\Resources registering the scheme handler

Inheritance Hierarchy

SystemObject
CefSharp.SchemeHandlerFolderSchemeHandlerFactory

Namespace: CefSharp.SchemeHandler
Assembly: CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)

Syntax

public class FolderSchemeHandlerFactory : ISchemeHandlerFactory

public ref class FolderSchemeHandlerFactory : ISchemeHandlerFactory

The FolderSchemeHandlerFactory type exposes the following members.

Constructors

Methods

| | Name | Description | | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Protected method | Create | If the file requested is within the rootFolder then a IResourceHandler reference to the file requested will be returned otherwise a 404 ResourceHandler will be returned. | | Public method | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | | Protected method | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | | Public method | GetHashCode | Serves as the default hash function. (Inherited from Object.) | | Public method | GetType | Gets the Type of the current instance. (Inherited from Object.) | | Protected method | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | | Public method | ToString | Returns a string that represents the current object. (Inherited from Object.) |

Top

Fields

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public fieldStatic member | GetMimeTypeDelegate | GetMimeType(String) is being deprecated in favour of using Chromiums native mimeType lookup which is accessible using Cef.GetMimeType, this method is however not directly available as it exists in CefSharp.Core, to get around this we set this static delegate with a reference to Cef.GetMimeType when Cef.Initialize is called. |

Top

See Also

Reference