public override bool NextPortStatusChange(out Bolt.INatDevice device, out Bolt.IPortMapping mapping)
        {
            lock (syncLock) {
                if (portChanges.Count > 0)
                {
                    var change = portChanges.Dequeue();

                    device  = change.Device;
                    mapping = change.Mapping;
                    return(true);
                }
                else
                {
                    device  = null;
                    mapping = null;
                    return(false);
                }
            }
        }
Exemple #2
0
 public override void PortMappingChanged(Bolt.INatDevice device, Bolt.IPortMapping portMapping)
 {
     base.PortMappingChanged(device, portMapping);
     App.shared.Log("PortMappingChanged", this);
 }