updated browse to command

This commit is contained in:
Luke Pulverenti
2013-05-25 20:53:51 -04:00
parent de25a42680
commit 3a587a5d08
3 changed files with 44 additions and 10 deletions

View File

@@ -50,6 +50,12 @@ namespace MediaBrowser.Server.Implementations.ServerManager
/// <value>The receive action.</value>
public Action<WebSocketMessageInfo> OnReceive { get; set; }
/// <summary>
/// Gets the last activity date.
/// </summary>
/// <value>The last activity date.</value>
public DateTime LastActivityDate { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="WebSocketConnection" /> class.
/// </summary>
@@ -90,6 +96,8 @@ namespace MediaBrowser.Server.Implementations.ServerManager
/// <param name="bytes">The bytes.</param>
private void OnReceiveInternal(byte[] bytes)
{
LastActivityDate = DateTime.UtcNow;
if (OnReceive == null)
{
return;