internal BasicAuthenticationMiddleware(Func<IDictionary<string, object>, Task> next,
            BasicAuthenticationProtocol protocol)
        {
            if (next == null)
            {
                throw new ArgumentNullException("next");
            }

            if (protocol == null)
            {
                throw new ArgumentNullException("protocol");
            }

            _next = next;
            _protocol = protocol;
        }
Ejemplo n.º 2
0
        internal BasicAuthenticationMiddleware(Func <IDictionary <string, object>, Task> next,
                                               BasicAuthenticationProtocol protocol)
        {
            if (next == null)
            {
                throw new ArgumentNullException("next");
            }

            if (protocol == null)
            {
                throw new ArgumentNullException("protocol");
            }

            _next     = next;
            _protocol = protocol;
        }