public void Register(IAppHost appHost) { configValidator.ValidateAndThrow(this); ConfigureRequestLogger(appHost); var atRestPath = "/SeqRequestLogConfig"; appHost.RegisterService(typeof(SeqRequestLogConfigService), atRestPath); if (EnableRequestBodyTracking) { appHost.PreRequestFilters.Insert(0, (httpReq, httpRes) => { httpReq.UseBufferedStream = true; }); } appHost.GetPlugin <MetadataFeature>() .AddDebugLink(SeqUrl, "Seq Request Logs") .AddPluginLink(atRestPath.TrimStart('/'), "Seq IRequestLogger Configuration"); }