/// <summary> /// Initialize a new instance of the <see cref="HttpTrackingMiddleware"/> class. /// </summary> /// <param name="next">A reference to the next OwinMiddleware object in the chain.</param> /// <param name="options">A reference to an <see cref="HttpTrackingOptions"/> class.</param> public HttpTrackingMiddleware(OwinMiddleware next, HttpTrackingOptions options) : base(next) { storage_ = options.TrackingStore; if (!string.IsNullOrEmpty(options.TrackingIdPropertyName)) trackingIdPropertyName_ = options.TrackingIdPropertyName; maxRequestLength_ = options.MaximumRecordedRequestLength ?? maxRequestLength_; maxResponseLength_ = options.MaximumRecordedResponseLength ?? maxResponseLength_; }
/// <summary> /// Initialize a new instance of the <see cref="HttpTrackingMiddleware"/> class. /// </summary> /// <param name="next">A reference to the next OwinMiddleware object in the chain.</param> /// <param name="options">A reference to an <see cref="HttpTrackingOptions"/> class.</param> public HttpTrackingMiddleware(OwinMiddleware next, HttpTrackingOptions options) : base(next) { storage_ = options.TrackingStore; if (!string.IsNullOrEmpty(options.TrackingIdPropertyName)) { trackingIdPropertyName_ = options.TrackingIdPropertyName; } maxRequestLength_ = options.MaximumRecordedRequestLength ?? maxRequestLength_; maxResponseLength_ = options.MaximumRecordedResponseLength ?? maxResponseLength_; }