public HttpsConnectionFilter(HttpsConnectionFilterOptions options, IConnectionFilter previous) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (previous == null) { throw new ArgumentNullException(nameof(previous)); } if (options.ServerCertificate == null) { throw new ArgumentException("The server certificate parameter is required."); } _options = options; _previous = previous; }