Esempio n. 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();
        }
Esempio n. 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();
        }