コード例 #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);
        }
コード例 #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);
        }
コード例 #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)));
コード例 #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));
コード例 #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>());
コード例 #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>()));