private void Dispose(bool disposing) { if (disposing) { if (listenSocket != IntPtr.Zero) { testLogger.LogTrace("UdpReceiver[{0}] Closing Receive Socket", this.identifier); sockets.CloseSocket(listenSocket); } sockets.Dispose(); } }
public void Dispose() { testLogger.LogTrace("BroadcastSender[{0}] Dispose", this.identifier); Dispose(true); GC.SuppressFinalize(this); }
public void Dispose() { testLogger.LogTrace("TcpReceiver[{0}] Dispose", this.identifier); Dispose(true); GC.SuppressFinalize(this); }
public bool CreateProfile(string profile, string profileName) { try { using (Wlan wlanApi = new Wlan()) { testLogger.LogTrace("CreateProfile"); var wlanInterfaceList = wlanApi.EnumWlanInterfaces(); if (NetworkInterfaceDataPathTests.CheckWlanInterfaceCount(wlanApi) == false) { return(false); } var wlanInterface = wlanInterfaceList[0]; testLogger.LogComment("Creating Profile {0}", profileName); wlanApi.CreateProfile(wlanInterface.Id, profile); return(true); } } catch (Exception error) { testLogger.LogError("Error encountered while Creating the Wlan Profile {0}", profileName); testLogger.LogError(error.ToString()); return(false); } }