Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions samples/ClientApplication/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System;
using System.IO;
using System.IO.Pipelines;
using System.Net;
Expand Down Expand Up @@ -171,7 +170,7 @@ private static async Task EchoServer(IServiceProvider serviceProvider)
.Build();

var connection = await client.ConnectAsync(new IPEndPoint(IPAddress.Loopback, 5000));
Console.WriteLine($"Connected to {connection.LocalEndPoint}");
Console.WriteLine($"Connected to {connection.RemoteEndPoint}");

Console.WriteLine("Echo server running, type into the console");
var reads = Console.OpenStandardInput().CopyToAsync(connection.Transport.Output);
Expand Down Expand Up @@ -255,7 +254,6 @@ private static async Task SignalR()
}
}


private static async Task EchoServerWithTls(ServiceProvider serviceProvider)
{
var client = new ClientBuilder(serviceProvider)
Expand All @@ -276,7 +274,7 @@ private static async Task EchoServerWithTls(ServiceProvider serviceProvider)
.Build();

var connection = await client.ConnectAsync(new IPEndPoint(IPAddress.Loopback, 5004));
Console.WriteLine($"Connected to {connection.LocalEndPoint}");
Console.WriteLine($"Connected to {connection.RemoteEndPoint}");

Console.WriteLine("Echo server running, type into the console");
var reads = Console.OpenStandardInput().CopyToAsync(connection.Transport.Output);
Expand Down Expand Up @@ -306,7 +304,7 @@ private static async Task InMemoryEchoTransport(IServiceProvider serviceProvider
Console.WriteLine("Started Server");

var connection = await client.ConnectAsync(endpoint: null);
Console.WriteLine($"Connected to {connection.LocalEndPoint}");
Console.WriteLine($"Connected to {connection.RemoteEndPoint}");

Console.WriteLine("Echo server running, type into the console");
var reads = Console.OpenStandardInput().CopyToAsync(connection.Transport.Output);
Expand All @@ -332,7 +330,7 @@ private static async Task CustomProtocol()
.Build();

await using var connection = await client.ConnectAsync(new IPEndPoint(IPAddress.Loopback, 5005));
Console.WriteLine($"Connected to {connection.LocalEndPoint}");
Console.WriteLine($"Connected to {connection.RemoteEndPoint}");

var protocol = new LengthPrefixedProtocol();
var reader = connection.CreateReader();
Expand Down