Click or drag to resize

ContextAsyncTHierarchyItemAsyncBeforeResponseAsync 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: 9.1.5460-Beta
Syntax
public virtual Task BeforeResponseAsync()

Return Value

Type: Task

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

Remarks

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 IMethodHandlerAsyncTHierarchyItemAsync you need to call EnsureBeforeResponseWasCalledAsync instead of this method to avoid double execution.

See Also