PeerCastStation.UI.PortMapperMonitor.AddPortOnDevice C# (CSharp) Méthode

AddPortOnDevice() private méthode

private AddPortOnDevice ( NatDevice device, int port ) : void
device NatDevice
port int
Résultat void
    private void AddPortOnDevice(NatDevice device, int port)
    {
      device.MapAsync(MappingProtocol.TCP, port, TimeSpan.FromSeconds(7200), cancelSource.Token);
      device.MapAsync(MappingProtocol.UDP, port, TimeSpan.FromSeconds(7200), cancelSource.Token);
    }