From 3dbfa3e8f83cee709298e0f22411f870c0d19f61 Mon Sep 17 00:00:00 2001 From: BrennanConroy Date: Thu, 10 May 2018 08:32:03 -0700 Subject: [PATCH] More realistic echo scenario (#2240) --- benchmarkapps/BenchmarkServer/Hubs/EchoHub.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarkapps/BenchmarkServer/Hubs/EchoHub.cs b/benchmarkapps/BenchmarkServer/Hubs/EchoHub.cs index 6233650a82..a10d781290 100644 --- a/benchmarkapps/BenchmarkServer/Hubs/EchoHub.cs +++ b/benchmarkapps/BenchmarkServer/Hubs/EchoHub.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; @@ -31,9 +30,9 @@ namespace BenchmarkServer.Hubs Console.WriteLine("Broadcast exited: Sent {0} messages", sent); } - public Task Echo(DateTime time) + public DateTime Echo(DateTime time) { - return Clients.Client(Context.ConnectionId).SendAsync("send", time); + return time; } public Task EchoAll(DateTime time)