userver: samples/grpc_middleware_service/src/middlewares/client/component.cpp
Loading...
Searching...
No Matches
samples/grpc_middleware_service/src/middlewares/client/component.cpp
#include "component.hpp"
#include "middleware.hpp"
#include <userver/components/component_config.hpp>
namespace sample::grpc::auth::client {
Component::Component(const components::ComponentConfig& config,
: MiddlewareComponentBase(config, context),
factory_(std::make_shared<MiddlewareFactory>(context)) {}
std::shared_ptr<const ugrpc::client::MiddlewareFactoryBase>
Component::GetMiddlewareFactory() {
return factory_;
}
} // namespace sample::grpc::auth::client