Ejemplo n.º 1
0
        public GrpcChannelx CreateChannel(CreateGrpcChannelContext context)
        {
            var channel = _baseProvider.CreateChannel(context);

            Debug.Log($"Channel Created: {context.Target.Host}:{context.Target.Port} ({(context.Target.IsInsecure ? "Insecure" : "Secure")}) [{channel.Id}]");
            return(channel);
        }
Ejemplo n.º 2
0
        public GrpcChannelx CreateChannel(CreateGrpcChannelContext context)
        {
            var channel = _baseProvider.CreateChannel(context);

            Debug.Log($"Channel Created: {context.Target.Host}:{context.Target.Port} ({context.Target.ChannelCredentials}) [{channel.Id}]");
            return(channel);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a channel to the target and register the channel under the management of the provider.
 /// </summary>
 public static GrpcChannelx CreateChannel(this IGrpcChannelProvider provider, GrpcChannelTarget target, ChannelCredentials channelCredentials, IReadOnlyList <ChannelOption> channelOptions)
 => provider.CreateChannel(new CreateGrpcChannelContext(provider, target, new GrpcCCoreChannelOptions(channelOptions, channelCredentials)));
Ejemplo n.º 4
0
 /// <summary>
 /// Create a channel to the target and register the channel under the management of the provider.
 /// </summary>
 public static GrpcChannelx CreateChannel(this IGrpcChannelProvider provider, GrpcChannelTarget target, GrpcChannelOptions channelOptions)
 => provider.CreateChannel(new CreateGrpcChannelContext(provider, target, channelOptions));
Ejemplo n.º 5
0
 /// <summary>
 /// Create a channel to the target and register the channel under the management of the provider.
 /// </summary>
 public static GrpcChannelx CreateChannel(this IGrpcChannelProvider provider, string host, int port, ChannelCredentials channelCredentials, ChannelOption[] channelOptions = null)
 => provider.CreateChannel(new GrpcChannelTarget(host, port, channelCredentials), channelOptions ?? Array.Empty <ChannelOption>());
Ejemplo n.º 6
0
 /// <summary>
 /// Create a channel to the target and register the channel under the management of the provider.
 /// </summary>
 public static GrpcChannelx CreateChannel(this IGrpcChannelProvider provider, GrpcChannelTarget target, ChannelOption[] channelOptions = null)
 => provider.CreateChannel(new CreateGrpcChannelContext(provider, target, channelOptions ?? Array.Empty <ChannelOption>()));