コード例 #1
0
        public override async Task CreatePortMap(Mapping mapping)
        {
            CreatePortMappingMessage message = new CreatePortMappingMessage(mapping, localAddress, this);

            using (await _httpClient.SendAsync(message.Encode(), message.Method).ConfigureAwait(false))
            {
            }
        }
コード例 #2
0
        public override Task CreatePortMap(Mapping mapping)
        {
            CreatePortMappingMessage message = new CreatePortMappingMessage(mapping, localAddress, this);

            return(_httpClient.SendAsync(message.Encode(), message.Method));
        }