Beispiel #1
0
        public InfoPanelViewModel()
        {
            _items = new ObservableCollection<InfoItem>();
            _timer = new DispatcherTimer(DispatcherPriority.Render);
            _timer.Interval = TimeSpan.FromSeconds(1);

            _natUtils = new NatUtils(false);
        }
Beispiel #2
0
        public NetworkNode()
        {
            _natUtils = new NatUtils(true);

            _startup = new NetworkStartup();
            _startup.Initialize();

            _networkStack = _startup.Container.Get<INetworkStack>();
        }
Beispiel #3
0
        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)
            {

            }
        }