Moving IClient interface in ChatHubClientResultsStrongyTyped.cs
parent
c4aee8f944
commit
624a6aa39a
|
@ -3,13 +3,13 @@ using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||||
|
|
||||||
namespace SignalRHubsSample.Hubs;
|
namespace SignalRHubsSample.Hubs;
|
||||||
// <snippet_HubClientResultsStronglyTyped>
|
// <snippet_HubClientResultsStronglyTyped>
|
||||||
|
public interface IClient
|
||||||
|
{
|
||||||
|
Task<string> GetMessage();
|
||||||
|
}
|
||||||
|
|
||||||
public class ChatHubClientResultsStronglyTyped : Hub
|
public class ChatHubClientResultsStronglyTyped : Hub
|
||||||
{
|
{
|
||||||
public interface IClient
|
|
||||||
{
|
|
||||||
Task<string> GetMessage();
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ChatHub : Hub<IClient>
|
public class ChatHub : Hub<IClient>
|
||||||
{
|
{
|
||||||
public async Task<string> WaitForMessage(string connectionId)
|
public async Task<string> WaitForMessage(string connectionId)
|
||||||
|
|
Loading…
Reference in New Issue