Beispiel #1
0
 /// <summary>
 /// Constructor with channel and invoker
 /// </summary>
 /// <param name="channel"></param>
 /// <param name="invoker"></param>
 /// <param name="connectionData"></param>
 public InvokerBundle(Channel channel, CallInvoker invoker, GrpcChannelConnectionData connectionData)
 {
     Channel = channel;
     Invoker = invoker;
     Host    = connectionData;
     Id      = Guid.NewGuid().ToString("D");
 }
 /// <summary>
 /// Add host
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public ClientConfigurator AddHost(GrpcChannelConnectionData options)
 {
     // add
     ClientConfiguration.Hosts.Add(options);
     return(this);
 }