// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.SignalR.Internal;
namespace Microsoft.AspNetCore.SignalR
{
///
/// A base class for a strongly typed SignalR hub.
///
/// The type of client.
public abstract class Hub : Hub where T : class
{
private IHubCallerClients _clients;
///
/// Gets or sets a that can be used to invoke methods on the clients connected to this hub.
///
public new IHubCallerClients Clients
{
get
{
if (_clients == null)
{
_clients = new TypedHubClients(base.Clients);
}
return _clients;
}
set => _clients = value;
}
}
}