Telemetry initializer populates client IP address for the current request.
Наследование: Microsoft.ApplicationInsights.Web.Implementation.WebTelemetryInitializerBase
 public void ConstructorSetsDefaultClientIpHeader()
 {
     var module = new ClientIpHeaderTelemetryInitializer();
     foreach (string headerName in module.HeaderNames)
     {
         Assert.AreEqual("X-Forwarded-For", headerName);
     }
 }
Пример #2
0
        public void ConstructorSetsDefaultClientIpHeader()
        {
            var module = new ClientIpHeaderTelemetryInitializer();

            foreach (string headerName in module.HeaderNames)
            {
                Assert.AreEqual("X-Forwarded-For", headerName);
            }
        }
Пример #3
0
        public void ConstructorSetsDefaultHeadersSeparator()
        {
            var module = new ClientIpHeaderTelemetryInitializer();

            Assert.AreEqual(",", module.HeaderValueSeparators);
        }
Пример #4
0
        public void ConstructorSetsLastUserId()
        {
            var module = new ClientIpHeaderTelemetryInitializer();

            Assert.IsTrue(module.UseFirstIp);
        }
 public void ConstructorSetsDefaultHeadersSeparator()
 {
     var module = new ClientIpHeaderTelemetryInitializer();
     Assert.AreEqual(",", module.HeaderValueSeparators);
 }
 public void ConstructorSetsLastUserId()
 {
     var module = new ClientIpHeaderTelemetryInitializer();
     Assert.IsTrue(module.UseFirstIp);
 }