public UdpTelegrafChannelTest() { _port = 8125; _channel = new UdpTelegrafChannel(new Uri($"udp://127.0.0.1:{_port}")); _receivingUdpClient = new UdpClient(_port); _ipEndPoint = new IPEndPoint(IPAddress.Any, _port); }
public TelegrafInfuxClient(ITelegrafChannel channel, IDictionary <string, string> tags) { _channel = channel ?? throw new ArgumentNullException(nameof(channel)); _tags = tags ?? new Dictionary <string, string>(); }