public virtual Task BeforeResponseAsync()
Public Overridable Function BeforeResponseAsync As Task
public: virtual Task^ BeforeResponseAsync()
abstract BeforeResponseAsync : unit -> Task override BeforeResponseAsync : unit -> 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.