Example #1
0
        public async override Task <string> ProviderField()
        {
            if (httpContext != null)
            {
                var features = httpContext.Features;
                var serverIp = ReflectorHelper.GetProp <System.Net.IPAddress>(features, "LocalIpAddress");

                return(serverIp.ToString());
            }
            return(string.Empty);
        }