Esempio n. 1
0
        public MainWindowViewModel()
        {
            WinMan    = new WindowManager();
            connector = new NodeConnector(AllNodes, new MockBlockChain(), new ClientSettings());
            listener  = new NodeListener(AllNodes, new MockBlockChain(), new ClientSettings());

            listener.StartListen(new IPEndPoint(IPAddress.Any, testPortToUse));
        }
Esempio n. 2
0
        public MainWindowViewModel()
        {
            AllNodes  = new ObservableCollection <Node>();
            tempNodex = new List <Node>();
            var clientSettings = new ClientSettings();

            WinMan    = new WindowManager();
            connector = new NodeConnector(tempNodex, new MockBlockChain(), clientSettings);
            listener  = new NodeListener(new List <Node>(), new MockBlockChain(), clientSettings);

            listener.StartListen(new IPEndPoint(IPAddress.Any, testPortToUse));
        }