public ViewModelLocator() { #if LOCALTESTMODEON hostCommunicator = new MockHostCommunicator(); var mockHostCommunicator = hostCommunicator as MockHostCommunicator; clientCommunicator = new MockClientCommunicator { Host = mockHostCommunicator }; clientCommunicator2 = new MockClientCommunicator { Host = mockHostCommunicator }; mockHostCommunicator.Client1 = clientCommunicator as MockClientCommunicator; mockHostCommunicator.Client2 = clientCommunicator2 as MockClientCommunicator; #else var config = new P2PSession.P2PSessionConfigurationData { multicastIP = "239.7.7.7", multicastPort = "60608", tcpPort = "4400" }; clientCommunicator = new ClientCommunicator(new P2PSessionClient(config)); hostCommunicator = new HostCommunicator(new P2PSessionHost(config)); #endif }
public ViewModelLocator() { #if LOCALTESTMODEON hostCommunicator = new MockHostCommunicator(); var mockHostCommunicator = hostCommunicator as MockHostCommunicator; clientCommunicator = new MockClientCommunicator { Host = mockHostCommunicator }; clientCommunicator2 = new MockClientCommunicator { Host = mockHostCommunicator }; mockHostCommunicator.Client1 = clientCommunicator as MockClientCommunicator; mockHostCommunicator.Client2 = clientCommunicator2 as MockClientCommunicator; #else var config = new P2PSession.P2PSessionConfigurationData { multicastIP = "239.7.7.7", multicastPort = "60608", tcpPort = "4400" }; clientCommunicator = new ClientCommunicator(new P2PSessionClient(config)); hostCommunicator = new HostCommunicator(new P2PSessionHost(config)); #endif }