public FluentSender(string tag, string host = "localhost", int port = 24224, int bufmax = 1024*1024, int timeout = 3000, bool verbose = false, int autoretryinterval = 10000) { _client = null; _pendings = null; _host = host; _port = port; _bufmax = bufmax; _timeout = timeout; _verbose = verbose; _autoretryinterval = autoretryinterval; _packer = new MessagePacker(tag); }
private async Task InitializeAsync(string tag, string host, int port, int bufmax, int timeout, bool verbose) { _host = host; _port = port; _bufmax = bufmax; _timeout = timeout; _verbose = verbose; _packer = new MessagePacker(tag); try { await ReconnectAsync(); } catch { Close(); } }