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); }
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); }
/// <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)));
/// <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));
/// <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>());
/// <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>()));