// 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. namespace Microsoft.AspNetCore.SignalR { /// /// A base class for SignalR hubs that use dynamic to represent client invocations. /// public abstract class DynamicHub : Hub { private DynamicHubClients _clients; /// /// Gets or sets an object that can be used to invoke methods on the clients connected to this hub. /// public new DynamicHubClients Clients { get { if (_clients == null) { _clients = new DynamicHubClients(base.Clients); } return _clients; } set => _clients = value; } } }