ResourceHandler Methods |
The ResourceHandler type exposes the following members.
Name | Description | |
---|---|---|
Cancel |
Called if the request is cancelled
| |
Dispose |
Dispose of resources here
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FromFileName | Obsolete.
Gets the resource from the file.
| |
FromFilePath |
Gets the resource from the file path specified. Use the GetMimeType(String)
helper method to lookup the mimeType if required.
| |
FromStream |
Gets the resource from a stream.
| |
FromString(String, String) |
Gets the resource from the string.
| |
FromString(String, Encoding, Boolean, String) |
Gets a ResourceHandler that represents a string.
Without a Preamble, Cef will use BrowserSettings.DefaultEncoding to load the html.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetMimeType |
Gets the MIME type of the content.
| |
GetResponse |
Populate the response stream, response length. When this method is called
the response should be fully populated with data.
It is possible to redirect to another url at this point in time.
NOTE: It's no longer manditory to implement this method, you can simply populate the
properties of this instance and they will be set by the default implementation.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessRequestAsync |
Begin processing the request. If you have the data in memory you can execute the callback
immediately and return true. For Async processing you would typically spawn a Task to perform processing,
then return true. When the processing is complete execute callback.Continue(); In your processing Task, simply set
the StatusCode, StatusText, MimeType, ResponseLength and Stream
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |