Click or drag to resize

ContextAsyncTHierarchyItemBeforeResponseAsync Method

IT Hit WebDAV Classes Reference
This method is called right before engine starts writing response.

Namespace:  ITHit.Server
Assembly:  ITHit.Server (in ITHit.Server.dll) Version: 13.3.13068
public virtual Task BeforeResponseAsync()

Return Value

Type: Task

[Missing <returns> documentation for "M:ITHit.Server.ContextAsync`1.BeforeResponseAsync"]


Specifically this method is called when the request is parsed, engine has called all methods which shall change state of an item and is ready to start writing response.

However methods of interfaces which read data may also be called after this method.

This method can be overriden to either commit or rollback transaction.

In your implementation of IMethodHandlerTHierarchyItem you need to call EnsureBeforeResponseWasCalledAsync instead of this method to avoid double execution.

See Also