Apply review suggestions

pull/9875/head
Shadowghost 2 years ago
parent 266d55b7aa
commit 368f9202ce

@ -58,7 +58,11 @@ public class ActivityLogWebSocketListener : BasePeriodicWebSocketListener<Activi
base.Dispose(dispose); base.Dispose(dispose);
} }
private new void Start(WebSocketMessageInfo message) /// <summary>
/// Starts sending messages over an activity log web socket.
/// </summary>
/// <param name="message">The message.</param>
protected override void Start(WebSocketMessageInfo message)
{ {
if (!message.Connection.AuthorizationInfo.User.HasPermission(PermissionKind.IsAdministrator)) if (!message.Connection.AuthorizationInfo.User.HasPermission(PermissionKind.IsAdministrator))
{ {

@ -68,7 +68,11 @@ public class SessionInfoWebSocketListener : BasePeriodicWebSocketListener<IEnume
base.Dispose(dispose); base.Dispose(dispose);
} }
private new void Start(WebSocketMessageInfo message) /// <summary>
/// Starts sending messages over a session info web socket.
/// </summary>
/// <param name="message">The message.</param>
protected override void Start(WebSocketMessageInfo message)
{ {
if (!message.Connection.AuthorizationInfo.User.HasPermission(PermissionKind.IsAdministrator)) if (!message.Connection.AuthorizationInfo.User.HasPermission(PermissionKind.IsAdministrator))
{ {

@ -96,7 +96,7 @@ namespace MediaBrowser.Controller.Net
/// Starts sending messages over a web socket. /// Starts sending messages over a web socket.
/// </summary> /// </summary>
/// <param name="message">The message.</param> /// <param name="message">The message.</param>
protected void Start(WebSocketMessageInfo message) protected virtual void Start(WebSocketMessageInfo message)
{ {
var vals = message.Data.Split(','); var vals = message.Data.Split(',');

Loading…
Cancel
Save