userver: samples/grpc_middleware_service/src/middlewares/server/component.cpp
Loading...
Searching...
No Matches
samples/grpc_middleware_service/src/middlewares/server/component.cpp
#include "component.hpp"
#include "middleware.hpp"
namespace sample::grpc::auth::server {
Component::Component(const components::ComponentConfig& config, const components::ComponentContext& context)
: MiddlewareComponentBase(config, context), middleware_(std::make_shared<Middleware>()) {}
std::shared_ptr<ugrpc::server::MiddlewareBase> Component::GetMiddleware() { return middleware_; }
} // namespace sample::grpc::auth::server