22
22
using System . Collections . Generic ;
23
23
using System . Collections . Specialized ;
24
24
using System . Net . WebSockets ;
25
+ using System . Security . Principal ;
25
26
using System . Web ;
26
27
using System . Web . WebSockets ;
27
28
@@ -40,6 +41,36 @@ public WisejWebSocketContext(IDictionary<string, object> environment)
40
41
this . webSocketContext = ( WebSocketContext ) environment [ "System.Net.WebSockets.WebSocketContext" ] ;
41
42
}
42
43
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
+
43
74
public override Uri RequestUri
44
75
{
45
76
get { return this . request . Url ; }
@@ -67,6 +98,21 @@ public override bool IsClientConnected
67
98
get { return this . WebSocket . State == WebSocketState . Open ; }
68
99
}
69
100
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
+
70
116
public override HttpServerUtilityBase Server
71
117
{
72
118
get { return new HttpServerUtilityWrapper ( this . context . Server ) ; }
0 commit comments