System.Net.WebSockets.HttpListenerWebSocketContext.HttpListenerWebSocketContext C# (CSharp) 메소드

HttpListenerWebSocketContext() 개인적인 메소드

private HttpListenerWebSocketContext ( Uri requestUri, NameValueCollection headers, CookieCollection cookieCollection, IPrincipal user, bool isAuthenticated, bool isLocal, bool isSecureConnection, string origin, IEnumerable secWebSocketProtocols, string secWebSocketVersion, string secWebSocketKey, WebSocket webSocket ) : System.Collections.Generic
requestUri Uri
headers System.Collections.Specialized.NameValueCollection
cookieCollection CookieCollection
user IPrincipal
isAuthenticated bool
isLocal bool
isSecureConnection bool
origin string
secWebSocketProtocols IEnumerable
secWebSocketVersion string
secWebSocketKey string
webSocket WebSocket
리턴 System.Collections.Generic
        internal HttpListenerWebSocketContext(
            Uri requestUri,
            NameValueCollection headers,
            CookieCollection cookieCollection,
            IPrincipal user,
            bool isAuthenticated,
            bool isLocal,
            bool isSecureConnection,
            string origin,
            IEnumerable<string> secWebSocketProtocols,
            string secWebSocketVersion,
            string secWebSocketKey,
            WebSocket webSocket)
        {
            Debug.Assert(requestUri != null, "requestUri shouldn't be null");
            Debug.Assert(headers != null, "headers shouldn't be null");
            Debug.Assert(cookieCollection != null, "cookieCollection shouldn't be null");
            Debug.Assert(secWebSocketProtocols != null, "secWebSocketProtocols shouldn't be null");
            Debug.Assert(webSocket != null, "webSocket shouldn't be null");

            _cookieCollection = new CookieCollection();
            _cookieCollection.Add(cookieCollection);

            _headers = new NameValueCollection(headers);
            _user = CopyPrincipal(user);

            _requestUri = requestUri;
            _isAuthenticated = isAuthenticated;
            _isLocal = isLocal;
            _isSecureConnection = isSecureConnection;
            _origin = origin;
            _secWebSocketProtocols = secWebSocketProtocols;
            _secWebSocketVersion = secWebSocketVersion;
            _secWebSocketKey = secWebSocketKey;
            _webSocket = webSocket;
        }