Encapsulates telemetry location information.
Inheritance: IJsonSerializable
        public void IpRejectsNonIpv4Address()
        {
            var context = new LocationContext(new Dictionary <string, string>());

            context.Ip = "2401:4893:f0:5c:2452:4474:03d2:9375";
            Assert.Null(context.Ip);
        }
        public void IpCanBeChangedByUserToSpecifyACustomValue()
        {
            var context = new LocationContext(new Dictionary <string, string>());

            context.Ip = "192.168.1.1";
            Assert.Equal("192.168.1.1", context.Ip);
        }
        public void IpIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
        {
            var context = new LocationContext(new Dictionary <string, string>());

            Assert.Null(context.Ip);
        }
 public void IpRejectsNonIpv4Address()
 {
     var context = new LocationContext(new Dictionary<string, string>());
     context.Ip = "2401:4893:f0:5c:2452:4474:03d2:9375";
     Assert.Null(context.Ip);
 }
 public void IpCanBeChangedByUserToSpecifyACustomValue()
 {
     var context = new LocationContext(new Dictionary<string, string>());
     context.Ip = "192.168.1.1";
     Assert.Equal("192.168.1.1", context.Ip);
 }
 public void IpIsNullByDefaultToAvoidSendingItToEndpointUnnecessarily()
 {
     var context = new LocationContext(new Dictionary<string, string>());
     Assert.Null(context.Ip);
 }