Click or drag to resize

DavContextBaseAsyncBeforeResponseAsync Method

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

Namespace:  ITHit.WebDAV.Server
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 7.1.4620
Syntax
public virtual Task BeforeResponseAsync()

Return Value

Type: Task

[Missing <returns> documentation for "M:ITHit.WebDAV.Server.DavContextBaseAsync.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 IMethodHandlerAsync you need to call EnsureBeforeResponseWasCalledAsync instead of this method to avoid double execution.

See Also