2222using System . Collections . Generic ;
2323using System . Collections . Specialized ;
2424using System . Net . WebSockets ;
25+ using System . Security . Principal ;
2526using System . Web ;
2627using System . Web . WebSockets ;
2728
@@ -40,6 +41,36 @@ public WisejWebSocketContext(IDictionary<string, object> environment)
4041 this . webSocketContext = ( WebSocketContext ) environment [ "System.Net.WebSockets.WebSocketContext" ] ;
4142 }
4243
44+ public override IPrincipal User
45+ {
46+ get { return this . context . User ; }
47+ }
48+
49+ public override WindowsIdentity LogonUserIdentity
50+ {
51+ get { return this . request . LogonUserIdentity ; }
52+ }
53+
54+ public override bool IsAuthenticated
55+ {
56+ get { return this . request . IsAuthenticated ; }
57+ }
58+
59+ public override bool IsLocal
60+ {
61+ get { return this . request . IsLocal ; }
62+ }
63+
64+ public override bool IsSecureConnection
65+ {
66+ get { return this . request . IsSecureConnection ; }
67+ }
68+
69+ public override bool IsDebuggingEnabled
70+ {
71+ get { return this . context . IsDebuggingEnabled ; }
72+ }
73+
4374 public override Uri RequestUri
4475 {
4576 get { return this . request . Url ; }
@@ -67,6 +98,21 @@ public override bool IsClientConnected
6798 get { return this . WebSocket . State == WebSocketState . Open ; }
6899 }
69100
101+ public override NameValueCollection ServerVariables
102+ {
103+ get { return this . request . ServerVariables ; }
104+ }
105+
106+ public override HttpClientCertificate ClientCertificate
107+ {
108+ get { return this . request . ClientCertificate ; }
109+ }
110+
111+ public override HttpApplicationStateBase Application
112+ {
113+ get { return new HttpApplicationStateWrapper ( this . context . Application ) ; }
114+ }
115+
70116 public override HttpServerUtilityBase Server
71117 {
72118 get { return new HttpServerUtilityWrapper ( this . context . Server ) ; }
0 commit comments