19 #ifndef GRPCPP_CREATE_CHANNEL_H
20 #define GRPCPP_CREATE_CHANNEL_H
27 static inline std::shared_ptr<::grpc::Channel> CreateChannel(
28 const std::string& target,
29 const std::shared_ptr<ChannelCredentials>& creds) {
33 static inline std::shared_ptr<::grpc::Channel> CreateCustomChannel(
34 const std::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
39 namespace experimental {
41 static inline std::shared_ptr<::grpc::Channel>
42 CreateCustomChannelWithInterceptors(
43 const std::string& target,
const std::shared_ptr<ChannelCredentials>& creds,
46 std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>
47 interceptor_creators) {
48 return ::grpc_impl::experimental::CreateCustomChannelWithInterceptors(
49 target, creds, args, std::move(interceptor_creators));
55 #endif // GRPCPP_CREATE_CHANNEL_H