Hi.
I want to specify local port number of my grpc client (c#), something like :
----------------------------------------------------------------------------------------------
var socketFactory = ? // how to get socket factory struct from native c++ library from C#
var options = new List<ChannelOption>(){
new ChannelOption("grpc.socket_factory", pointer-to-socket-factory)
};
var channel = new Channel(hostname, portnum, new SslCredentials(cert_pem), options);
----------------------------------------------------------------------------------------------
The official api document says "channnel options listed in grpc_types.h file are available", and I want to access [Line:300] #define GRPC_ARG_SOCKET_FACTORY "grpc.socket_factory" option.
But I don't know how to access it from C# code. Could you give me a simple example code to specify local port?
thank you.