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)); }
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)); }