InitializeAsync() private method

private InitializeAsync ( ) : Task
return Task
コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }