[Modify] Add it

To support issue #367.
This commit is contained in:
sta 2017-06-24 15:55:25 +09:00
parent c41f1374ef
commit 992237eeab

View File

@ -28,6 +28,7 @@
using System;
using System.IO;
using System.Security.Principal;
using System.Text;
using WebSocketSharp.Net;
@ -98,6 +99,25 @@ namespace WebSocketSharp.Server
}
}
/// <summary>
/// Gets the information for the client.
/// </summary>
/// <value>
/// <para>
/// A <see cref="IPrincipal"/> instance or <see langword="null"/>
/// if not authenticated.
/// </para>
/// <para>
/// That instance describes the identity, authentication scheme,
/// and security roles for the client.
/// </para>
/// </value>
public IPrincipal User {
get {
return _context.User;
}
}
#endregion
#region Private Methods