public HttpServer(IHttpAuthorizationManager authorization, string defaultUri) : base(defaultUri) { this.sip = Encoding.UTF8.GetBytes(@"sip"); this.sha1 = new SHA1CryptoServiceProvider(); this.authorization = authorization; this.authorization.ValidateAuthorization = IsAuthorizedByAgent; }