Namespace: ITHit.Server
public abstract class EngineAsync<THierarchyItemAsync> where THierarchyItemAsync : IHierarchyItemBase
The EngineAsyncTHierarchyItemAsync type exposes the following members.
Name | Description | |
---|---|---|
EngineAsyncTHierarchyItemAsync | Initializes a new instance of the EngineAsyncTHierarchyItemAsync class |
Name | Description | |
---|---|---|
CalculateContentLength |
Indicates if response content length is calculated. Default is true.
| |
ContentEncoding |
Gets or sets the HTTP character set of the output stream. Default is UTF-8.
| |
CorsAllowedFor |
Enables or disables CORS.
| |
License |
Gets or sets the license text.
| |
Logger | ILogger instance which engine will use for logging.
| |
OutputXmlFormatting |
Specifies whether XML written to the output will be formatted. Default is false.
| |
UseFullUris |
Specifies whether engine shall use full or relative urls. Default is true.
|
Name | Description | |
---|---|---|
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegisterMethodHandler |
Registers custom method handler.
| |
RunAsync |
Processes request and generates response.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
You will not create this class directly, instead you will create an instance of DavEngineAsync calss or GSuiteEngineAsync class. The Engine parses the request sent by client application, processes requests making calls to your interfaces implementations and generates response. Find more information about creating each Engine type in the DavEngineAsync and GSuiteEngineAsync classes description.
You must set License property before you can use the Engine.
All updates invoked within one request execution shall be inside a single transaction. Transaction can be committed or rollbacked in BeforeResponseAsync method, which is called right before starting sending response to the client. After this method is called, no methods of interfaces which update state will be called. However methods which read state can be called.