public async Task GetIpAddress() { string localIp = await transMgr.GetIpAddress(); Console.WriteLine("local ip address = " + localIp); Assert.IsTrue(localIp != null); }
private async Task <Metadata> CreateMetadataObj <T>(T obj) { string sourceIp = await peerManager.GetIpAddress(); string objType = obj.GetType().Name; Metadata metaData = new Metadata(); metaData.SourceIp = sourceIp; metaData.ObjectType = objType; return(metaData); }