partial void DisposeNative() { _port?.Dispose(); _client?.Dispose(); _endpoint?.Dispose(); _port = null; _client = null; _endpoint = null; }
public void Dispose() { _port?.Disconnect(_endpoint); _port?.Dispose(); _client?.Dispose(); _endpoint?.Dispose(); _port = null; _client = null; _endpoint = null; }