More realistic echo scenario (#2240)

This commit is contained in:
BrennanConroy 2018-05-10 08:32:03 -07:00 committed by GitHub
parent db33d593f0
commit 3dbfa3e8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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)