#pragma once #include "handler.h" #include "local_flags.h" #include "session.h" namespace NBus { template EMessageStatus TOnMessageContext::SendReplyAutoPtr(TAutoPtr& response) { return Session->SendReplyAutoPtr(Ident, response); } inline EMessageStatus TOnMessageContext::SendReplyMove(TBusMessageAutoPtr response) { return SendReplyAutoPtr(response); } inline void TOnMessageContext::AckMessage(TBusIdentity& ident) { Y_ABORT_UNLESS(Ident.LocalFlags == NPrivate::MESSAGE_IN_WORK); Y_ABORT_UNLESS(ident.LocalFlags == 0); Ident.Swap(ident); } }