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

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

            response.UnwrapChangeResult();
        }