@@ -28,6 +28,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
using System;
 | 
					using System;
 | 
				
			||||||
using System.IO;
 | 
					using System.IO;
 | 
				
			||||||
 | 
					using System.Security.Principal;
 | 
				
			||||||
using System.Text;
 | 
					using System.Text;
 | 
				
			||||||
using WebSocketSharp.Net;
 | 
					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
 | 
					    #endregion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #region Private Methods
 | 
					    #region Private Methods
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user