public static async Task <FluentSender> CreateSync(string tag, string host = "localhost", int port = 24224, int bufmax = 1024 *1024, int timeout = 3000, bool verbose = false, int autoretryinterval = 10000) { var sender = new FluentSender(tag, host, port, bufmax, timeout, verbose); await sender.InitializeAsync(); return(sender); }
public static async Task<FluentSender> CreateSync(string tag, string host = "localhost", int port = 24224, int bufmax = 1024*1024, int timeout = 3000, bool verbose = false, int autoretryinterval = 10000) { var sender = new FluentSender(tag, host, port, bufmax, timeout, verbose); await sender.InitializeAsync(); return sender; }