/// <summary> /// Sets to null the hello network module instance and relesase resources, so that /// we can execute again its construction from the scratch. /// </summary> public void Reset() { closeSockets(); // close the sockets instance = null; // sets to null the instance }
/// <summary> /// Constructor. /// Retrieves the HelloNetworkModuleInstance /// </summary> public HelloThread() { // Creates or retrieves a network module to use to communicate on the network network = HelloNetworkModule.Instance; }
public HelloSenderThread(HelloNetworkModule network) { Settings.Instance.PropertyChanged += Instance_PropertyChanged; this.network = network; }