Akka.Interfaced.SlimSocket.ChannelHelper.CreateClientChannel C# (CSharp) Method

CreateClientChannel() public static method

public static CreateClientChannel ( string name, ChannelType type, IPEndPoint endPoint, XunitOutputLogger outputSource ) : Client.IChannel
name string
type ChannelType
endPoint System.Net.IPEndPoint
outputSource XunitOutputLogger
return Client.IChannel
        public static Client.IChannel CreateClientChannel(string name, ChannelType type, IPEndPoint endPoint,
                                                          XunitOutputLogger.Source outputSource)
        {
            return CreateClientChannel(name, $"{type}|{endPoint}|", outputSource);
        }

Same methods

ChannelHelper::CreateClientChannel ( string name, string address, XunitOutputLogger outputSource ) : Client.IChannel

Usage Example

        private async Task <Client.IChannel> CreateSecondaryClientChannelAsync(string address, bool connected = true)
        {
            var channel = ChannelHelper.CreateClientChannel("2", address, _outputSource);

            if (connected)
            {
                await channel.ConnectAsync();
            }

            return(channel);
        }
All Usage Examples Of Akka.Interfaced.SlimSocket.ChannelHelper::CreateClientChannel