22class CallContextBase {
26 CallContextBase(utils::
impl::InternalTag, impl::CallState& state);
29 CallContextBase(CallContextBase&&) =
delete;
30 CallContextBase& operator=(CallContextBase&&) =
delete;
33 grpc::ServerContext& GetServerContext();
36 const grpc::ServerContext& GetServerContext()
const;
39 std::string_view GetCallName()
const;
42 std::string_view GetServiceName()
const;
45 std::string_view GetMethodName()
const;
77 const impl::CallState& GetCallState(utils::
impl::InternalTag)
const {
return state_; }
80 impl::CallState& GetCallState(utils::
impl::InternalTag) {
return state_; }
83 ~CallContextBase() =
default;
87 impl::CallState& state_;