示例#1
0
        public async Task WriteAsync(LogBatch data)
        {
            var response = await m_Server.Call(LogServiceAddress,
                                               nameof(ILogChronicle),
                                               0,
                                               (http, ct) => http.Client.PostAndGetJsonMapAsync("batch", data));

            response.UnwrapChangeResult();
        }
示例#2
0
        public async Task WriteAsync(LogBatch data)
        {
            var response = await m_Server.Call(LogServiceAddress,
                                               nameof(ILogChronicle),
                                               new ShardKey(DateTime.UtcNow),
                                               (http, ct) => http.Client.PostAndGetJsonMapAsync("batch", data)).ConfigureAwait(false);

            response.UnwrapChangeResult();
        }