public InfoPanelViewModel() { _items = new ObservableCollection<InfoItem>(); _timer = new DispatcherTimer(DispatcherPriority.Render); _timer.Interval = TimeSpan.FromSeconds(1); _natUtils = new NatUtils(false); }
public NetworkNode() { _natUtils = new NatUtils(true); _startup = new NetworkStartup(); _startup.Initialize(); _networkStack = _startup.Container.Get<INetworkStack>(); }
public void Run() { NatUtils natUtils = new NatUtils(true); Task<IEnumerable<Mapping>> mappings = natUtils.GetAllMappings(); mappings.Wait(); IEnumerable<Mapping> mappings1 = mappings.Result; foreach (Mapping mapping in mappings1) { } }